protected boolean isValid(T method){
  return Modifier.isPublic(method.getModifiers());
}

protected boolean isValid ( T method ) { return Modifier . isPublic ( method . getModifiers ( ) ) ; }
checks validness of the method . at least the valid method should be public .
