void ( @NotNull ConfigurationKind configurationKind, @NotNull File... javaSourceRoots ) { if (myEnvironment != null) { throw new IllegalStateException("must not set up myEnvironment twice"); } CompilerConfiguration configuration = createConfiguration( configurationKind, TestJdkKind.MOCK_JDK, getBackend(), Collections.singletonList(TestKotlinArtifacts.getJetbrainsAnnotations()), ArraysKt.filterNotNull(javaSourceRoots), Collections.emptyList() ); myEnvironment = KotlinCoreEnvironment.createForTests( getTestRootDisposable(), configuration, EnvironmentConfigFiles.JVM_CONFIG_FILES ); }