docs: private static Method findGetterWithCompatibleReturnType(final String getterName, final Class<?> clazz,
  		final boolean enforceBooleanReturnType) {
  		
  		for( final Method method : clazz.getMethods() ) {
  			
  			if( !getterName.equalsIgnoreCase(method.getName()) || method.getParameterTypes().length != 0
  				|| method.getReturnType().equals(void.class) ) {
  				continue; // getter must have correct name, 0 parameters and a return type
  			}
  			
  			if( !enforceBooleanReturnType || boolean.class.equals(method.getReturnType())
  				|| Boolean.class.equals(method.getReturnType()) ) {
  				return method;
  			}
  			
  		}
  		
  		return null;
  	}