How to call setter in chain of Stream
<p>How can I call the setter in chain of Stream without using forEach()? </p>

<pre><code>List&lt;Foo&gt; newFoos = foos.stream()
        .filter(foo -&gt; Foo::isBlue)
        .map(foo -&gt; foo.setTitle("Some value")) //I am unable to use this because also changing the data type into Object
        .collect(Collectors.toList());
</code></pre>