annotationClass

Returns a KClass instance corresponding to the annotation type of this annotation.

val <T : Annotation> T.annotationClass: KClass<out T>(source)
@Target(AnnotationTarget.CLASS)
annotation class Greeting(val message: String)

@Greeting("Hello, world!")
class Greeter

fun main() {
    val ann = Greeter::class.annotations.filterIsInstance<Greeting>().first()
    val kClass = ann.annotationClass
    println(kClass)                                 // prints class Greeting
    println(kClass == Greeting::class)              // true
}

Source