Set<Language> languages = new LinkedHashSet<Language>();
for (ModuleReference lang : model.importedLanguages()) {
Language language = scope.getLanguage(lang);
if (language != null) {
languages.add(language);
<BUG>languages.addAll(language.getDependenciesManager().getAllExtendedLanguages());
</BUG>
}
}
for (ModuleReference dk : model.importedDevkits()) {

Set<Language> languages = new LinkedHashSet<Language>();
for (ModuleReference lang : model.importedLanguages()) {
Language language = scope.getLanguage(lang);
if (language != null) {
languages.add(language);
language.getDependenciesManager().collectAllExtendedLanguages(languages);
}
}
for (ModuleReference dk : model.importedDevkits()) {
