docs: public static <S extends Enum<S>> S getSystemPropertyAsEnum(Class<S> type, String name, S defaultValue) {
          final String value = getSystemProperty(name, null);
          if (value != null) {
              try {
                  final S enumeration = Enum.valueOf(type, value);
                  if (enumeration != null) {
                      return enumeration;
                  }
              } catch (Throwable exception) {
                  //
              }
              try {
                  final int ordinal = Integer.parseInt(value);
                  final S enumeration = type.getEnumConstants()[ordinal];
                  if (enumeration != null) {
                      return enumeration;
                  }
              } catch (Throwable exception) {
                  //
              }
          }
          return defaultValue;
      }