docs: private ConstraintGraph buildConstraintGraph(Map<String, DetectorNode> nodeMap, Set<DetectorFactory> factorySet,
              List<DetectorOrderingConstraint> constraintList) {
  
          ConstraintGraph result = new ConstraintGraph();
  
          for (DetectorOrderingConstraint constraint : constraintList) {
              Set<DetectorNode> earlierSet = addOrCreateDetectorNodes(constraint.getEarlier(), nodeMap, factorySet, result);
              Set<DetectorNode> laterSet = addOrCreateDetectorNodes(constraint.getLater(), nodeMap, factorySet, result);
  
              createConstraintEdges(result, earlierSet, laterSet, constraint);
          }
  
          return result;
      }