code: @Deprecated
      public static boolean isEnumSubclass(Object value) {
          if (value instanceof Class) {
              Class superclass = ((Class) value).getSuperclass();
              while (superclass != null) {
                  if (superclass.getName().equals("java.lang.Enum")) {
                      return true;
                  }
                  superclass = superclass.getSuperclass();
              }
          }
  
          return false;
      }
docs: Determines whether the value object is a Class object representing a
  subclass of java.lang.Enum. Uses class name check to avoid breaking on
  pre-Java 5 JREs.
  
  @param value an object
  @return true if the object is an Enum