title: Stream has already been operated upon or closed - Java 8
body: <p>Why I have next exception?</p>
  
  <pre><code>Exception in thread "main" java.lang.IllegalStateException: stream has already been operated upon or closed
  at java.util.stream.AbstractPipeline.&lt;init&gt;(AbstractPipeline.java:203)...
  </code></pre>
  
  <p>com.search.offer.OffersSelector.isGood(OffersSelector.java:23)
  How change the code to fix it?</p>
  
  <pre><code>Stream&lt;String&gt; titleExclusions = ResourceUtility.contentToUtf8TreeSet("+.txt").
          stream().filter(item -&gt; item.length() == 0).collect(Collectors.toSet()).stream();
  //...
  titleExclusions.filter(tittle::contains).collect(Collectors.toSet()).size() == 0;//line 23
  </code></pre>