MacroHelper expander = MacrosFactory.forModuleFile(moduleIFile);
if (solution) {
SolutionDescriptor sd = SolutionDescriptorPersistence.loadSolutionDescriptor(moduleIFile, expander);
if (!sd.getCompileInMPS()) continue;
String srcPath = ProjectPathUtil.getGeneratorOutputPath(moduleIFile, sd).getPath();
<BUG>result.add(new Pair<String, String>(moduleDir.getPath(), srcPath));
} else {</BUG>
LanguageDescriptor ld = LanguageDescriptorPersistence.loadLanguageDescriptor(moduleIFile, expander);
String srcPath = ProjectPathUtil.getGeneratorOutputPath(moduleIFile, ld).getPath();
<BUG>result.add(new Pair<String, String>(moduleDir.getPath(), srcPath));
}</BUG>
}

MacroHelper expander = MacrosFactory.forModuleFile(moduleIFile);
if (solution) {
SolutionDescriptor sd = SolutionDescriptorPersistence.loadSolutionDescriptor(moduleIFile, expander);
if (!sd.getCompileInMPS()) continue;
String srcPath = ProjectPathUtil.getGeneratorOutputPath(moduleIFile, sd).getPath();
result.putValue(moduleDir.getPath(), srcPath);
String testPath = ProjectPathUtil.getGeneratorTestsOutputPath(moduleIFile, sd).getPath();
result.putValue(moduleDir.getPath(), testPath);
} else {
LanguageDescriptor ld = LanguageDescriptorPersistence.loadLanguageDescriptor(moduleIFile, expander);
String srcPath = ProjectPathUtil.getGeneratorOutputPath(moduleIFile, ld).getPath();
result.putValue(moduleDir.getPath(), srcPath);
