code: @SafeVarargs
  	public static <T> Set<T> asSet(T... ts) {
  		if ( ts == null ) {
  			return null;
  		}
  		else if ( ts.length == 0 ) {
  			return Collections.emptySet();
  		}
  		else {
  			Set<T> set = new HashSet<T>( getInitialCapacityFromExpectedSize( ts.length ) );
  			Collections.addAll( set, ts );
  			return Collections.unmodifiableSet( set );
  		}
  	}
docs: Returns an unmodifiable set containing the given elements.
  
  @param ts the elements from which to create a set
  @param <T> the type of the element in the set
  @return an unmodifiable set containing the given elements or {@code null} in case the given element array is
  {@code null}.