Field getCorrespondingField(Class type, Method method) {

        try {
            return type.getDeclaredField(GetterUtilities.getFieldName(method));
        }
        catch (NoSuchFieldException e) {
            return null;
        }

    }
Field getCorrespondingField(Class type, Method method) {

        try {
            return type.getDeclaredField(GetterUtilities.getFieldName(method));
        }
        catch (NoSuchFieldException e) {
            return null;
        }

    }
Field getCorrespondingField ( Class type , Method method ) { try { return type . getDeclaredField ( GetterUtilities . getFieldName ( method ) ) ; } catch ( NoSuchFieldException e ) { return null ; } }
Helper method for getting a corresponsing field for a method

@param type the type to search the field in
@param method the getter method to search the field for
@return the Field or null if the field for the passed method doesn't exists
Helper method for getting a corresponsing field for a method