for the non-test code this is handled by Kotlin Gradle plugin, I wonder how they handle it. I read something about multi-phase compilation and that they stub everything, but I didn’t quite get it. How could one achieve the same thing for compiling tests?