@SuppressWarnings({ "rawtypes", "unchecked" })
	public static <T> Set<T> asSet(Collection<T> c) {
		if (c instanceof Set) {
			return (Set) c;
		}
		if (c == null) {
			return new HashSet<>();
		}

		return new HashSet<>(c);
	}
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