@SafeVarargs
    @SuppressWarnings("varargs")
    public static <T> Set<T> of(T... values) {
        HashSet<T> result = new HashSet<>(values.length);
        Collections.addAll(result, values);
        return Collections.unmodifiableSet(result);
    }
Returns an unmodifiable set containing any number of entries.

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