</BUG>
return;
}
for (SModel.Problem m : problems) {
if (!m.isError()) continue;
<BUG>consumer.consume(new ValidationProblem(Severity.ERROR, m.getText()));
</BUG>
}
return;
}

if (model.getModule() == null) return;
if (jetbrains.mps.util.SNodeOperations.isModelDisposed(model)) return;
if (model instanceof InvalidSModel) {
Iterable<SModel.Problem> problems = model.getProblems();
if (!problems.iterator().hasNext()) {
if (!processor.process(new ValidationProblem(Severity.ERROR, "Couldn't read model"))) return;
return;
}
for (SModel.Problem m : problems) {
if (!m.isError()) continue;
if (!processor.process(new ValidationProblem(Severity.ERROR, m.getText()))) return;
}
return;
}
