new CodeCompletionHandlerBase(completionType, false, false, true).
invokeCompletion(getProject(), getEditor(), time, false, false);
LookupImpl lookup = (LookupImpl) LookupManager.getActiveLookup(getEditor());
if (lookup == null) return null;
return new CompleteResult(lookup.getItems().toArray(LookupElement.EMPTY_ARRAY),
lookup.itemPattern(lookup.getItems().get(0)));
}
protected void completeLookupItem() {
completeLookupItem(null, '\t');
}