SModel model = node.getModel();
Set<ModuleReference> importedAndExtendedLanguages = new HashSet<ModuleReference>();
for (ModuleReference langRef : SModelOperations.getAllImportedLanguages(model)) {
importedAndExtendedLanguages.add(langRef);
Language l = ModuleRepositoryFacade.getInstance().getModule(langRef, Language.class);
<BUG>if (l != null) {
for (Language le : l.getDependenciesManager().getAllExtendedLanguages()) {

importedAndExtendedLanguages.add(le.getModuleReference());
}</BUG>
}

SModel model = node.getModel();
Set<ModuleReference> importedAndExtendedLanguages = new HashSet<ModuleReference>();
for (ModuleReference langRef : SModelOperations.getAllImportedLanguages(model)) {
importedAndExtendedLanguages.add(langRef);
Language l = ModuleRepositoryFacade.getInstance().getModule(langRef, Language.class);
if (l == null) continue;
Set<Language> ext = new LinkedHashSet<Language>();
l.getDependenciesManager().collectAllExtendedLanguages(ext);
for (Language le : ext) {
importedAndExtendedLanguages.add(le.getModuleReference());
