boolean hasCompatibleReturnTypes(Class type, Method method) {

        Field correspondingField = getCorrespondingField(type, method);

        return correspondingField != null && method.getReturnType().isAssignableFrom(correspondingField.getType());

    }
boolean hasCompatibleReturnTypes(Class type, Method method) {

        Field correspondingField = getCorrespondingField(type, method);

        return correspondingField != null && method.getReturnType().isAssignableFrom(correspondingField.getType());

    }
boolean hasCompatibleReturnTypes ( Class type , Method method ) { Field correspondingField = getCorrespondingField ( type , method ) ; return correspondingField != null && method . getReturnType ( ) . isAssignableFrom ( correspondingField . getType ( ) ) ; }
Getter method and field must have compatible fields.

@param type the type to search the field in
@param method the method to check
@return true, if field type is assignable to methods return type
Getter method and field must have compatible fields .