addImportedModelsToListener(semanticModel);
}
}
private void addImportedModelsToListener(SemanticModel semanticModel) {
Iterator<SemanticModel> importedModels = semanticModel.importedModels();
<BUG>if(importedModels != null) {
</BUG>
while (importedModels.hasNext()) {
SemanticModel importedModel = importedModels.next();
<BUG>if(importedModel.hasSemanticModelListener(mySemanticModelListener)) continue;
</BUG>
importedModel.addSemanticModelListener(mySemanticModelListener);

addImportedModelsToListener(semanticModel);
}
}
private void addImportedModelsToListener(SemanticModel semanticModel) {
Iterator<SemanticModel> importedModels = semanticModel.importedModels();
if (importedModels != null) {
while (importedModels.hasNext()) {
SemanticModel importedModel = importedModels.next();
if (importedModel.hasSemanticModelListener(mySemanticModelListener)) continue;
importedModel.addSemanticModelListener(mySemanticModelListener);
