void (@NotNull Editor editor, @NotNull Caret caret, DataContext dataContext) { CopyPasteManager.getInstance().stopKillRings(); if (editor.getDocument().getLineCount() != 0) { editor.getSelectionModel().removeSelection(); LogicalPosition caretPosition = editor.getCaretModel().getLogicalPosition(); int lineEndOffset = editor.getDocument().getLineEndOffset(caretPosition.line); editor.getCaretModel().moveToOffset(lineEndOffset); } getEnterHandler().execute(editor, caret, dataContext); }