I am looking for method that can make stream of collection, but is null safe. If collection is null, empty stream is returned. Like this:
Utils.nullSafeStrea
Not sure if helps, but since Java 9, you can just write:
Stream.ofNullable(nullableCollection) .flatMap(Collection::stream)