How to dynamically add annotation to class metadata?

I’m trying to find a way to dynamically add an annotation into the metadata for a class.

Trying something like (it is a Class, not KClass) this and other options aren’t working:

it.kotlin.annotations.toMutableList().add(myAnnotation)

Is this possible in Kotlin?

submitted by /u/consworth
[link] [comments]