public static ImmutableList<VariableElement> getEnums(AnnotationValue value) {
    return ENUMS_VISITOR.visit(value);
  }
Returns the value as a list of enums.

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