void (@NotNull InsertionContext context, @NotNull LookupElement item) { final Editor editor = context.getEditor(); final Document document = editor.getDocument(); int tailOffset = context.getTailOffset(); document.insertString(tailOffset, IMPORT_KWD); editor.getCaretModel().moveToOffset(tailOffset + IMPORT_KWD.length()); }