public static VariableElement getEnum(AnnotationValue value) {
    return EnumVisitor.INSTANCE.visit(value);
  }
Returns the value as a VariableElement.

@throws IllegalArgumentException if the value is not an enum.
common/src/main/java/com/google/auto/common/AnnotationValues.java