public static <T> Set<T> toSet(final T... items) {
        // No Set.of() in GWT land :-(
        return NullSafe.stream(items)
                .collect(Collectors.toSet());
    }
Util class for doing various things not emulated in GWT
stroom-util-shared/src/main/java/stroom/util/shared/GwtUtil.java