public static <S extends Set<T>, T> Set<T> set(final S set) {
        return set != null
                ? set
                : Collections.emptySet();
    }
Returns the passed set if it is non-null else returns an empty set.
stroom-util-shared/src/main/java/stroom/util/shared/NullSafe.java