if(match.isPresent()) {
Set<OWLEntity> entities = shortFormProvider.getEntities(shortForm);
for(OWLEntity entity : entities) {
if(expectedEntityTypes.contains(entity.getEntityType())) {
EscapingShortFormProvider escapingShortFormProvider = new EscapingShortFormProvider(shortFormProvider);
AutoCompletionChoice choice = new AutoCompletionChoice(escapingShortFormProvider.getShortForm(entity), shortForm, "", fromPos, toPos);
AutoCompletionMatch autoCompletionMatch = new AutoCompletionMatch(
match.get(),
choice
);
matches.add(autoCompletionMatch);