Passing java class as parameter

SomeClass::class.java is correct. The “unresolved reference” error sounds like a dependency issue with the KClass.java extension property defined in kotlin-runtime not being found. Perhaps the IntelliJ project is not set up correctly? In Maven, you should be getting kotlin-runtime through kotlin-stdlib.