File (Module module, boolean forTests) { CompilerModuleExtension extension = CompilerModuleExtension.getInstance(module); Assert.assertNotNull(extension); String outputUrl = forTests? extension.getCompilerOutputUrlForTests() : extension.getCompilerOutputUrl(); Assert.assertNotNull((forTests? "Test output" : "Output") +" directory for module '" + module.getName() + "' isn't specified", outputUrl); return JpsPathUtil.urlToFile(outputUrl); }