This method expects having access to org.jetbrains.kotlin:kotlin-reflect.
org.jetbrains.kotlin:kotlin-reflect
the Set of T instances through reflection.