code: public static <E extends Enum<E>> EnumCliParam<E> fromDef(EnumParamDef<E> def) {
          return new EnumCliParam<>(def.getIdentifier(), def.getDefaultValueSupplier(), def.isNullable(), def.getEnumClass());
      }
docs: Construct a CLI enum parameter from an {@link EnumParamDef}.
  
  @param def EnumParamDef to construct a CLI enum parameter from.
  @param <E> Enum type.
  @return A CLI {@code Enum} parameter constructed from the EnumParamDef.