String (JpsModule module, boolean tests) { try { File file = FileUtil.createTempDirectory(module.getName(), tests ? "testSrc" : "src"); JpsJavaModuleExtension extension = getJavaService().getOrCreateModuleExtension(module); String url = JpsPathUtil.getLibraryRootUrl(file); if (tests) { extension.setTestOutputUrl(url); } else { extension.setOutputUrl(url); } return url; } catch (IOException e) { throw new RuntimeException(e); } }