void (@NotNull InsertionContext context, @NotNull LookupElement item) { Editor editor = context.getEditor(); if (!newline) { EditorModificationUtil.moveCaretRelatively(editor, -1); } else { EditorModificationUtil.moveCaretRelatively(editor, -insertedTextSize); PsiDocumentManager.getInstance(context.getProject()).commitDocument(editor.getDocument()); invokeEnterHandler(editor); EditorActionUtil.moveCaretToLineEnd(editor, false, false); } AutoPopupController.getInstance(context.getProject()).autoPopupMemberLookup(editor, null); }