findAnnotation

inline fun <reified T : Annotation> KAnnotatedElement.findAnnotation(): T?(source)

Returns an annotation of the given type on this element.

Since Kotlin

1.1