code: public boolean hasBuildCause(CaseInsensitiveString pipelineName) {
          BuildCause buildCause = toBeScheduled.get(pipelineName);
          return buildCause != null && buildCause.getMaterialRevisions().totalNumberOfModifications() > 0;
      }
docs: TODO: #5163 - this is a concurrency issue - talk to Rajesh or JJ