@SafeVarargs
    @SuppressWarnings("varargs")
    public static <T> List<T> of(T... values) {
        return Collections.unmodifiableList(Arrays.asList(values));
    }
Returns an unmodifiable list containing any number of entries.

@param values the List's values.
@param <T> the List's value type.
@return a List containing the specified values.
@throws NullPointerException if any value is {@code null}.
smithy-utils/src/main/java/software/amazon/smithy/utils/ListUtils.java