// "Collapse loop with stream 'collect()'" "true-preview"

import java.util.ArrayList;
import java.util.List;
import static java.util.stream.Collectors.*;

public class Main<T> {
  public static List<String> test() {
    List<String> strings = new ArrayList<>();
    for(in<caret>t x = 0; x < 10; x++) {
      strings.add(null);
    }
    return strings;
  }
}