void (LookupElement item, char completionChar) { final LookupImpl lookup = (LookupImpl)LookupManager.getInstance(getProject()).getActiveLookup(); assertNotNull(lookup); lookup.setCurrentItem(item); if (completionChar == 0 || completionChar == '\n' || completionChar == '\t') { lookup.finishLookup(completionChar); } else { type(completionChar); } }