public static boolean validateElements(Iterable<? extends Element> elements) {
    return StreamSupport.stream(elements.spliterator(), false)
        .allMatch(SuperficialValidation::validateElement);
  }
Returns true if all of the given elements return true from {@link #validateElement(Element)}.
common/src/main/java/com/google/auto/common/SuperficialValidation.java