entityData.setLocalAnnotationsCount(notesCount);
result.add(entityData);
}
}
else if (entity.isOWLAnnotationProperty()) {
OWLAnnotationPropertyHierarchyProvider hierarchyProvider = project.getAnnotationPropertyHierarchyProvider();
Set<OWLAnnotationProperty> subProperties = hierarchyProvider.getChildren(entity.asOWLAnnotationProperty());
for (OWLAnnotationProperty subProperty : subProperties) {
final EntityData entityData = rm.getEntityData(subProperty);
int notesCount = project.getNotesManager().getDirectNotesCount(subProperty);
entityData.setLocalAnnotationsCount(notesCount);
result.add(entityData);