public static < T extends Annotation > List < T > searchForAnnotation ( Method method , Class < T > annotation ) { if ( method == null ) { return Lists . newArrayList ( ) ; } return searchClasses ( method , annotation , method . getDeclaringClass ( ) ) ; }
Searches for all annotations of the given type on this method or on type level for all interfaces and superclasses