findAnnotation

fun <S : Symbol.Annotation<S, A>, A : Symbol.Annotation.Instance<S, A>> KSAnnotated.findAnnotation(annotation: S, checkResolvedTypes: Boolean = true): A?(source)

Find the first annotation instance of annotation type.