@SafeVarargs
	public static <T> Set<T> asSet(T... items) {
		Set<T> set = new HashSet<>();
		if (items == null) {
			return set;
		}

		if (items.length == 1 && items[0] == null) {
			return set;
		}

		for (T e : items) {
			set.add(e);
		}
		return set;
	}
Turns the given items into a set.  If there is only a single item and it is null, then
an empty set will be returned.

@param items the items to put in the set
@return the list of items
Ghidra/Framework/Generic/src/main/java/util/CollectionUtils.java