private <R> R withCancellationProgressManager(@NotNull ThrowableComputable<R, Exception> runnable) throws Exception {
    var progressManager = ExternalSystemProgressNotificationManagerImpl.getInstanceImpl();
    try {
      progressManager.beforeCancel(getId());
      return runnable.compute();
    }
    finally {
      progressManager.onCancel(getId());
    }
  }
private <R> R withCancellationProgressManager(@NotNull ThrowableComputable<R, Exception> runnable)