return complete(time, CompletionType.BASIC);
}
@Nullable
protected CompleteResult complete(int time, CompletionType completionType) {
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)));