public static <T> T findAnnotation(Annotation[] searchList, Class<T> annotation) {
        if (searchList == null)
            return null;
        for (Annotation ann : searchList) {
            if (ann.annotationType().equals(annotation)) {
                return (T) ann;
            }
        }
        return null;
    }
public static < T > T findAnnotation ( Annotation [ ] searchList , Class < T > annotation ) { if ( searchList == null ) return null ; for ( Annotation ann : searchList ) { if ( ann . annotationType ( ) . equals ( annotation ) ) { return ( T ) ann ; } } return null ; }
@param <T>
@param searchList
@param annotation
@return