private List<EntityLookupResult> lookupEntities(final OWLAPIProject project, final EntityLookupRequest entityLookupRequest) {
final RenderingManager rm = project.getRenderingManager();
BidirectionalShortFormProvider sfp = rm.getShortFormProvider();
Set<OWLEntityDataMatch> matches = new TreeSet<OWLEntityDataMatch>();
EntityNameMatcher matcher = new EntityNameMatcher(entityLookupRequest.getSearchString());
for(String shortForm : sfp.getShortForms()) {
Optional<EntityNameMatchResult> result = matcher.findIn(shortForm);
if(result.isPresent()) {
Set<OWLEntity> entities = sfp.getEntities(shortForm);
for(OWLEntity matchingEntity : entities) {
Optional<OWLEntityData> match = toOWLEntityData(matchingEntity, entityLookupRequest, rm);
if(match.isPresent()) {