@Override
    public void executeWriteAction(final @NotNull Editor editor, @Nullable Caret caret, DataContext dataContext) {
      SelectionToCopy selectionToCopy = CopyAction.prepareSelectionToCut(editor);
      if (selectionToCopy == null) {
        return;
      }
      CopyAction.copyToClipboard(editor, EditorCopyPasteHelper.getInstance()::getSelectionTransferable, selectionToCopy);
      EditorModificationUtil.deleteSelectedTextForAllCarets(editor);
    }
@Override
    public void executeWriteAction(final @NotNull Editor editor, @Nullable Caret caret, DataContext dataContext)