kotlin-stdlib / kotlin.reflect.full / hasAnnotation hasAnnotation JVM 1.4 fun <reified T : Annotation> KAnnotatedElement.hasAnnotation(): Boolean(source) Returns true if this element is annotated with an annotation of type T.