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