
String sourceCanonical = new File(module.o2).getCanonicalPath();
</BUG>
if (!sourcesIncluded.contains(sourceCanonical)) {
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" + module.o1 + "\ngenerates into\n" + module.o2;

if (new File(module.o2).exists()) {

String sFolder = PATH_START_MODULE + Utils.getRelativeProjectPath(module.o2);
</BUG>
sourceGenFolders.add(sFolder);

rootManager.addContent(contentRoot);
}
contentRoot.removeContent();
List<String> sourceGenFolders = new ArrayList<String>();
List<String> classesGenFolders = new ArrayList<String>();
for (Entry<String, Collection<String>> module : Utils.collectMPSCompiledModulesInfo(dir).entrySet()) {
for (String sourcePath : module.getValue()) {
String sourceCanonical = new File(sourcePath).getCanonicalPath();
if (!sourcesIncluded.contains(sourceCanonical)) {
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()) {
String sFolder = PATH_START_MODULE + Utils.getRelativeProjectPath(sourcePath);
sourceGenFolders.add(sFolder);
