@Deprecated
  public static Optional<TypeElement> generatedAnnotation(Elements elements) {
    TypeElement jdk9Generated = elements.getTypeElement("javax.annotation.processing.Generated");
    if (jdk9Generated != null) {
      return Optional.of(jdk9Generated);
    }
    return Optional.ofNullable(elements.getTypeElement("javax.annotation.Generated"));
  }
Returns the element corresponding to the version of the {@code @Generated} annotation present
in the compile-time class- or module-path.

<p>First looks for {@code javax.annotation.processing.Generated}, and then {@code
javax.annotation.Generated}. Returns whichever is in the classpath (or modulepath), or {@link
Optional#empty()} if neither is.

@deprecated prefer {@link #generatedAnnotation(Elements, SourceVersion)}
common/src/main/java/com/google/auto/common/GeneratedAnnotations.java