usedLanguages.addAll(ModelContentUtil.getUsedLanguageNamespacesInTemplateModel(model.getSModel()));
}
}
Set<String> extendedLanguages = new HashSet<String>();
Language sourceLanguage = myModule.getSourceLanguage();
<BUG>usedLanguages.remove(sourceLanguage.getModuleFqName());
for(Language language : sourceLanguage.getDependenciesManager().getAllExtendedLanguages()){

extendedLanguages.add(language.getModuleFqName());</BUG>
}

usedLanguages.addAll(ModelContentUtil.getUsedLanguageNamespacesInTemplateModel(model.getSModel()));
}
}
Set<String> extendedLanguages = new HashSet<String>();
Language sourceLanguage = myModule.getSourceLanguage();
usedLanguages.remove(sourceLanguage.getModuleFqName());
Set<Language> ext = new LinkedHashSet<Language>();
sourceLanguage.getDependenciesManager().collectAllExtendedLanguages(ext);
for(Language language : ext){
extendedLanguages.add(language.getModuleFqName());
}
