@Override
    protected void execute(@NotNull ConsoleViewImpl console, @NotNull Editor editor, @NotNull DataContext context) {
      if (IncrementalSearchHandler.isHintVisible(editor)) {
        getDefaultActionHandler(myParentActionId).execute(editor, null, context);
        return;
      }

      console.flushDeferredText();
      Document document = editor.getDocument();
      int length = document.getTextLength();
      if (length == 0) {
        return;
      }

      SelectionModel selectionModel = editor.getSelectionModel();
      if (selectionModel.hasSelection()) {
        console.deleteUserText(selectionModel.getSelectionStart(),
                                   selectionModel.getSelectionEnd() - selectionModel.getSelectionStart());
      }
      else {
        int offset = editor.getCaretModel().getOffset() + myTextOffsetToDeleteRelativeToCaret;
        if (offset >= 0) {
          console.deleteUserText(offset, 1);
        }
      }
    }
@Override
    protected void execute(@NotNull ConsoleViewImpl console, @NotNull Editor editor, @NotNull DataContext context)