public static <L extends List<T>, T> List<T> list(final L list) {
        return list != null
                ? list
                : 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