void (@NotNull LookupEvent event) { lookup.removeLookupListener(this); if (state.isFinished()) return; myLookupShown = false; LookupElement item = event.getItem(); if (item instanceof TemplateExpressionLookupElement) { ((TemplateExpressionLookupElement)item).handleTemplateInsert(lookupItems, event.getCompletionChar()); } }