List<String> ( @NotNull List<String> additionalClasspath, @NotNull List<String> additionalOptions, @NotNull File outDirectory ) { List<String> classpath = new ArrayList<>(); classpath.add(TestKotlinArtifacts.getKotlinStdlib().getPath()); classpath.add(TestKotlinArtifacts.getKotlinReflect().getPath()); classpath.add(TestKotlinArtifacts.getJetbrainsAnnotations().getPath()); classpath.addAll(additionalClasspath); List<String> options = new ArrayList<>(Arrays.asList( "-classpath", StringsKt.join(classpath, File.pathSeparator), "-d", outDirectory.getPath() )); options.addAll(additionalOptions); return options; }