@SafeVarargs
    public static <T> Set<T> wrapSet(final T... source) {
        val list = new LinkedHashSet<T>();
        addToCollection(list, source);
        return list;
    }
Wrap set.

@param <T>    the type parameter
@param source the source
@return the set
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/CollectionUtils.java