public static < T extends TypeDescription > ElementMatcher . Junction < T > inheritsAnnotation ( ElementMatcher < ? super TypeDescription > matcher ) { return hasAnnotation ( annotationType ( matcher ) ) ; }
Matches any annotations by a given matcher on a type that declared these annotations or inherited them from its super classes .