tag

inline fun <T : Any> tag(type: KClass<T>): T?
inline fun <T : Any> tag(type: Class<T>): T?

Returns the tag attached with type as a key, or null if no tag is attached with that key.