docs: private void setField(Object value, Object object, Field f) {
          f.setAccessible(true);
  
          Object valueToSet = value;
          try {
              // check if field type is enum
              if (Enum.class.isAssignableFrom(f.getType())) {
                  Enum v = Enum.valueOf((Class<Enum>) f.getType(), String.valueOf(value));
                  valueToSet = v;
              }
              f.set(object, valueToSet);
          } catch (Exception e) {
              throw new RuntimeException(e.getMessage(), e);
          }
      }