
String sourceCanonical = new File(moduleWithSourceGen.o2).getCanonicalPath();
</BUG>
if (!sourceCanonical.endsWith("languages/languageDesign/smodel/tests_gen")) {
<BUG>assert sourceCanonical.startsWith(dir.getCanonicalPath()) : "module generates files to outside of 'root' folder for it:\n" + moduleWithSourceGen.o1 + "\ngenerates into\n" + moduleWithSourceGen.o2;

if (new File(moduleWithSourceGen.o2).exists()) {
sourceGen.add(moduleWithSourceGen.o2);
}
classesGen.add(moduleWithSourceGen.o1 + "/" + AbstractModule.CLASSES_GEN);

}</BUG>
}

Document doc = JDOMUtil.loadDocument(genSourcesIml);
Element rootManager = Utils.getComponentWithName(doc, MODULE_ROOT_MANAGER);
List<String> sourceGen = new ArrayList<String>();
List<String> classesGen = new ArrayList<String>();
for (File dir : sourceDirs) {
for (Entry<String, Collection<String>> module : Utils.collectMPSCompiledModulesInfo(dir).entrySet()) {
for (String sourcePath : module.getValue()) {
String sourceCanonical = new File(sourcePath).getCanonicalPath();
if (!sourceCanonical.endsWith("languages/languageDesign/smodel/tests_gen")) {
assert sourceCanonical.startsWith(dir.getCanonicalPath()) : "module generates files to outside of 'root' folder for it:\n" + module.getKey() + "\ngenerates into\n" + sourcePath;
if (new File(sourcePath).exists()) {
sourceGen.add(sourcePath);
