void (LookupElement item, char ch) { final LookupImpl lookup = (LookupImpl)LookupManager.getInstance(getProject()).getActiveLookup(); assert lookup != null; lookup.setCurrentItem(item); lookup.finishLookup(ch); }