void (@Nullable final LookupElement item, char completionChar) { if (item != null && item.requiresCommittedDocuments()) { PsiDocumentManager.getInstance(myProject).commitAllDocuments(); } myArranger.itemSelected(item, completionChar); if (!myListeners.isEmpty()){ LookupEvent event = new LookupEvent(this, item, completionChar); for (LookupListener listener : myListeners) { try { listener.itemSelected(event); } catch (Throwable e) { LOG.error(e); } } } }