List<SModuleReference> langsToCheck = new ArrayList<SModuleReference>();
langsToCheck.addAll(SModelOperations.getAllImportedLanguages(model));
langsToCheck.addAll(((jetbrains.mps.smodel.SModelInternal) model).engagedOnGenerationLanguages());
for (final SModuleReference lang : langsToCheck) {
if (repository.getModule(lang.getModuleId()) == null) {
<BUG>consumer.consume(new MissingImportedLanguageError(model, lang));
</BUG>
}
}
for (SModuleReference devKit : ((jetbrains.mps.smodel.SModelInternal) model).importedDevkits()) {

List<SModuleReference> langsToCheck = new ArrayList<SModuleReference>();
langsToCheck.addAll(SModelOperations.getAllImportedLanguages(model));
langsToCheck.addAll(((jetbrains.mps.smodel.SModelInternal) model).engagedOnGenerationLanguages());
for (final SModuleReference lang : langsToCheck) {
if (repository.getModule(lang.getModuleId()) == null) {
if (!processor.process(new MissingImportedLanguageError(model, lang))) return;
}
}
for (SModuleReference devKit : ((jetbrains.mps.smodel.SModelInternal) model).importedDevkits()) {
