annotation

inline fun <reified T> AnnotatedElement.annotation(): T?(source)

Get the first annotation of type T, or null if none is found.