String (String fileContent, Module mod1, Module mod2) { fileContent = FileUtil.toSystemIndependentName(fileContent); fileContent = replace(fileContent, ModuleRootManager.getInstance(mod1).getContentRoots()[0].getPath(), "MODULE_1"); fileContent = replace(fileContent, ModuleRootManager.getInstance(mod2).getContentRoots()[0].getPath(), "MODULE_2"); fileContent = StringUtil.convertLineSeparators(fileContent); final String[] lines = fileContent.split("\n"); lines[3] = "CLASSPATH"; lines[11] = "CLASSPATH"; return StringUtil.join(lines, "\n"); }