boolean isPublicNonStaticMethod ( final Method method ) { int modifiers = method . getModifiers ( ) ; return ! Modifier . isStatic ( modifiers ) && Modifier . isPublic ( modifiers ) ; }
Getter methods must be public and not be static .