docs: private static <E> Collection<E> checkElements(
        Collection<E> elements, Constraint<? super E> constraint) {
      Collection<E> copy = Lists.newArrayList(elements);
      for (E element : copy) {
        constraint.checkElement(element);
      }
      return copy;
    }