CodeQL library for Java/Kotlin
codeql/java-all 0.11.0 (changelog, source)

Member predicate Annotatable::getAnAnnotation

Gets an annotation that applies to this element, including inherited annotations. The results only include direct annotations; indirect annotations, that is repeated annotations in an (implicit) container annotation, are not included. The retention policy of the annotation type is not considered.

Annotation getAnAnnotation()