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

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;

public class Main<T> {
  public static List<Collection<CharSequence>> test(List<String> list) {
    List<Collection<CharSequence>> strings = list.stream().<List<CharSequence>>map(Collections::singletonList).collect(Collectors.toList());
      return strings;
  }
}