I\'m implementing a stream in which I use a collection listOfFoo to get ids of all items in that list and use them to get values of Bar instances.
The book Effective Java mentions the following:
Container types, including collections, maps, streams, arrays, and optionals should not be wrapped in optionals. (P.252)