title: Android Studio strange replace with for each suggestion
body: <p>Can any one got any clue what was Android Studio intention in the next scenario?</p>
  
  <p>I got this piece of code:</p>
  
  <pre><code>    for (Fragment fragment : getChildFragmentManager().getFragments()) {
          if (fragment instanceof DashMenuFragment &amp;&amp; selectedId != -1) {
              ((DashMenuFragment) fragment).setSelected(selectedId);
          }
      }
  </code></pre>
  
  <p>The <code>getChildFragmentManager()</code> is marked with yellow suggestion mark, saying:</p>
  
  <p><img src="https://i.stack.imgur.com/wurdU.png" alt="Can be replaced with foreach call"></p>
  
  <p>When I agree and tell it to use the suggestion my code become this:</p>
  
  <pre><code>    getChildFragmentManager().getFragments().stream().filter(fragment -&gt; fragment instanceof DashMenuFragment &amp;&amp; selectedId != -1).forEach((Fragment fragment) -&gt; {
          ((DashMenuFragment) fragment).setSelected(selectedId);
      });
  </code></pre>
  
  <h2>WHAT IS THIS?</h2>