title: Cannot resolve symbol stream with multiple filters but was fine with one filter
body: <p>I am trying to use multiple filters in my stream. It works ok with one filter but when I add another it can't resolve the symbol stream. It also can't resolve contains or split but all those were working fine with one filter.</p>
  
  <pre><code>try (Stream&lt;String&gt; lines = Files.lines(Paths.get(filePath))){
          lines.stream
                  .filter(line -&gt; line.contains(delimiter)).forEach(line -&gt; map.putIfAbsent(line.split(delimiter)[0], RomanNumerals.romanToInt(line.split(delimiter)[1]))
                  .filter(line2 -&gt; line.contains(delimiter2)).forEach(line2-&gt; map.putIfAbsent(line2.split(delimiter2)[0], RomanNumerals.romanToInt(line2.split(delimiter2)[1]))
                          )
  
          );
      }
  </code></pre>
  
  <p>I updated my code to </p>
  
  <pre><code>try (Stream&lt;String&gt; lines = Files.lines(Paths.get(filePath))){
          lines
                  .filter(line -&gt; line.contains(delimiter))
                  .filter(line -&gt; line.contains(delimiter2))
                  .forEach(line-&gt; map.putIfAbsent(line.split(delimiter)[0], RomanNumerals.romanToInt(line.split(delimiter)[1]))
  
          );
  </code></pre>