List<Collection<String>> (List<String> list) { List<Collection<String>> strings = new ArrayList<>(); for (String s : l<caret>ist) { List<String> e = Collections.singletonList(s); strings.add(e); } return strings; }