1e80c03d41
for it the com.intellij.core.JavaCoreApplicationEnvironment has to be copied to the compiler (named now KotlinCoreApplicationEnvironment) and modified accordingly