firstAnnotation

inline fun <T> KSClassDeclaration.firstAnnotation(): KSAnnotation?

Checks if this class declaration has an annotation of the specified type T.

Return

true if the class has at least one annotation of type T, false otherwise.