@Override
          public void run(final @NotNull ProgressIndicator indicator) {
            while (!myExecuteActionHandler.isEnabled() || !myExecuteActionHandler.canExecuteNow()) {
              if (indicator.isCanceled()) {
                break;
              }
              TimeoutUtil.sleep(300);
            }
            if (!indicator.isCanceled()) {
              executeInConsole(code);
            }
          }
@Override
          public void run(final @NotNull ProgressIndicator indicator)