src/main/java/io/github/classgraph/ClassInfo.java
public boolean hasMethodAnnotation(final String methodAnnotationName) {
        for (final ClassInfo ci : getOverrideOrder()) {
            if (ci.hasDeclaredMethodAnnotation(methodAnnotationName)) {
                return true;
            }
        }
        return false;
    }
/**
     * Checks whether this class or one of its superclasses or interfaces declares a method with the named
     * annotation.
     *
     * @param methodAnnotationName
     *            The name of a method annotation.
     * @return true if this class or one of its superclasses or interfaces declares a method with the named
     *         annotation.
     */
Checks whether this class or one of its superclasses or interfaces declares a method with the named
annotation.

@param methodAnnotationName
The name of a method annotation.
@return true if this class or one of its superclasses or interfaces declares a method with the named
annotation.
Checks whether this class or one of its superclasses or interfaces declares a method with the named annotation . @param methodAnnotationName The name of a method annotation . @return true if this class or one of its superclasses or interfaces declares a method with the named annotation .
public boolean hasMethodAnnotation(final String methodAnnotationName) {
        for (final ClassInfo ci : getOverrideOrder()) {
            if (ci.hasDeclaredMethodAnnotation(methodAnnotationName)) {
                return true;
            }
        }
        return false;
    }
public boolean hasMethodAnnotation ( final String methodAnnotationName ) { for ( final ClassInfo ci : getOverrideOrder ( ) ) { if ( ci . hasDeclaredMethodAnnotation ( methodAnnotationName ) ) { return true ; } } return false ; }
Checks whether this class or one of its superclasses or interfaces declares a method with the named
 annotation.
Checks whether this class or one of its superclasses or interfaces declares a method with the named annotation .