private boolean checkObsolete() {
      if (Promises.isRejected(this)) {
        cancelJob(new CancellationException("Cancelled by rejection"));
        return true;
      }
      for (BooleanSupplier condition : builder.myCancellationConditions) {
        if (condition.getAsBoolean()) {
          cancel();
          return true;
        }
      }
      if (myProgressIndicator != null && myProgressIndicator.isCanceled()) {
        cancel();
        return true;
      }
      return false;
    }
private boolean checkObsolete()