List<AutoCompletionCommand> (String pattern, int caretPosition) { return myDelegate instanceof AutoCompletionContributor ? ((AutoCompletionContributor)myDelegate).getAutocompleteItems(pattern, caretPosition) : Collections.emptyList(); }