boolean hasGetterPrefixInMethodName ( Method method ) { String methodName = method . getName ( ) ; if ( methodName != null ) { for ( String prefix : GETTER_PREFIXES ) { if ( methodName . startsWith ( prefix ) ) { return true ; } } } return false ; }
Getter method names must have a specific prefix .