My particular problem requires generation of members of a sealed class, which complicates things. As far as I'm aware, only Kotlin/JVM supports multifile classes, so I need to insert code into a class within my common source dir before compile time and remove it after compilation completes. Is there another way to do this?