private @NotNull Disposable getIndicatorDisposable(@NotNull ProgressIndicator indicator) {
      return indicator instanceof Disposable disposable ? disposable : new Disposable() {
        @Override
        public void dispose() {
          LOG.info("Cancelling update for " + mySdk);
          if (indicator.isRunning()) {
            indicator.cancel();
          }
        }
      };
    }
private @NotNull Disposable getIndicatorDisposable(@NotNull ProgressIndicator indicator)