void (final char c) { if (!LookupEvent.isSpecialCompletionChar(c)) { type(c); return; } final LookupManagerImpl manager = (LookupManagerImpl) LookupManager.getInstance(getProject()); final Lookup lookup = manager.getActiveLookup(); if(lookup != null) { manager.forceSelection(c, lookup.getCurrentItem()); } }