code: public static <T extends Enum<T>> T getElementValueEnum(AnnotationMirror anno, CharSequence name, Class<T> t, boolean useDefaults) {
          Symbol.VarSymbol vs = getElementValue(anno, name, Symbol.VarSymbol.class, useDefaults);
          T value = Enum.valueOf(t, vs.getSimpleName().toString());
          return value;
      }
docs: Version that is suitable for Enum elements.