void (@NotNull Editor editor, @Nullable Caret caret, DataContext dataContext) { if (editor.getCaretModel().getCaretCount() > 1) { editor.getCaretModel().removeCaret(editor.getCaretModel().getPrimaryCaret()); } else { editor.getSelectionModel().removeSelection(); } getAndResetNotFoundStatus(editor); editor.getScrollingModel().scrollToCaret(ScrollType.RELATIVE); }