void (Editor editor, List<? extends TemplateExpressionLookupElement> lookupItems) { TemplateExpressionLookupElement first = lookupItems.get(0); EditorModificationUtil.insertStringAtCaret(editor, first.getLookupString()); first.handleTemplateInsert(lookupItems, Lookup.AUTO_INSERT_SELECT_CHAR); }