CodeQL library for Java/Kotlin
codeql/java-all 0.8.3 (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()