public static <T> Set<T> wrapSet(final T source) {
        val list = new LinkedHashSet<T>();
        if (source != null) {
            list.add(source);
        }
        return list;
    }
public static < T > Set < T > wrapSet ( final T source ) { val list = new LinkedHashSet < T > ( ) ; if ( source != null ) { list . add ( source ) ; } return list ; }
Wrap set set.

@param <T>    the type parameter
@param source the source
@return the set