findAnnotation

open fun <A : Annotation> findAnnotation(annotationType: Class<out A>): A?(source)

Finds a single annotation of type annotationType from this executable's function.

The search is breadth-first and considers meta-annotations.