@Override
  public void setModalityProgress(@Nullable ProgressIndicator modalityProgress) {
    if (isRunning()) {
      throwInvalidState("setModalityProgress() must not be called on already running indicator");
    }
    myModalityProgress = modalityProgress;
    setModalityState(modalityProgress);
  }
@Override
  public void setModalityProgress(@Nullable ProgressIndicator modalityProgress)