code: static List<ElementConstraint> gatherConstraints(ElementConstraint head, ElementConstraint[] rest) {
          List<ElementConstraint> constraints = new ArrayList<ElementConstraint>(1 + rest.length);
          constraints.add(head);
          constraints.addAll(Arrays.asList(rest));
          return constraints;
      }
docs: XXX