@Override
    protected boolean isEnabledForCaret(@NotNull Editor editor, @NotNull Caret caret, DataContext dataContext) {
      if (myReplace && ConsoleViewUtil.isConsoleViewEditor(editor) &&
          !ConsoleViewUtil.isReplaceActionEnabledForConsoleViewEditor(editor)) {
        return false;
      }
      if (SEARCH_DISABLED.get(editor, false)) {
        return false;
      }
      Project project = CommonDataKeys.PROJECT.getData(dataContext);
      return project != null && !editor.isOneLineMode();
    }
@Override
    protected boolean isEnabledForCaret(@NotNull Editor editor, @NotNull Caret caret, DataContext dataContext)