// "Replace with 'collect()'" "true-preview"

import java.util.*;

public class Main {
  private void test() {
    List<String> strs = new ArrayList<>();
    StringBuilder sb = new StringBuilder();
    strs.stream().forEac<caret>h(x -> sb.append(x));
  }
}
