SModule module = model.getModule();
final SModelReference modelToValidateRef = model.getReference();
for (final SModelReference reference : SModelOperations.getImportedModelUIDs(model)) {
if (module.resolveInDependencies(reference.getModelId()) == null) {
String msg = "Can't find model: " + SModelStereotype.withoutStereotype(reference.getModelName());
<BUG>consumer.consume(new MissingModelError(model, msg, reference));
</BUG>
}
if (reference.equals(modelToValidateRef)) {
<BUG>consumer.consume(new ImportSelfWarning(model, reference));
}</BUG>
}

SModule module = model.getModule();
final SModelReference modelToValidateRef = model.getReference();
for (final SModelReference reference : SModelOperations.getImportedModelUIDs(model)) {
if (module.resolveInDependencies(reference.getModelId()) == null) {
String msg = "Can't find model: " + SModelStereotype.withoutStereotype(reference.getModelName());
if (!processor.process(new MissingModelError(model, msg, reference))) return;
}
if (reference.equals(modelToValidateRef)) {
if (!processor.process(new ImportSelfWarning(model, reference))) return;
}
}
