private static boolean isAutoValue(Element element) {
    return element.getAnnotationMirrors().stream()
        .map(annotation -> MoreTypes.asTypeElement(annotation.getAnnotationType()))
        .anyMatch(type -> type.getQualifiedName().contentEquals("com.google.auto.value.AutoValue"));
  }
An annotation {@link Processor} that reports errors for {@code @Memoized} methods that are not
inside {@code AutoValue}-annotated classes.
value/src/main/java/com/google/auto/value/extension/memoized/processor/MemoizedValidator.java