@Override
  public void checkCanceled() {
    throwIfCanceled();
    ProgressManager progressManager = ProgressManager.getInstanceOrNull();
    if (progressManager != null && ((CoreProgressManager)progressManager).runCheckCanceledHooks(this)) {
      throwIfCanceled();
    }
  }
@Override
  public void checkCanceled()