title: Streaming debugging in IntelliJ idea (Java)
body: <p>I want to debug the code that uses stream. When I use stream trace to track the details, an internal error occurs. （IntelliJ IDEA 2022.1）
  Main code{</p>
  <pre><code>String result =
          Stream.of(input.split(&quot;&quot;))
              .map(s -&gt; s.charAt(0))
              .sorted()
              .limit(5)
              .map(String::valueOf)
              .collect(joining());
      System.out.println(result);
  </code></pre>
  <p>}
  error: Internal error</p>