has Annotation
Начиная с Kotlin: 1.4
inline fun <T : Annotation> KAnnotatedElement.hasAnnotation(): Boolean
Возвращает true, если этот элемент аннотирован аннотацией типа T.
© 2010–2026 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/core/kotlin-reflect/kotlin.reflect.full/has-annotation.html