// "Use 'computeIfAbsent' method with functional argument" "false" import java.util.*; class Test { public void test(Map> map, String key) { List old = map.putIfAbsent(key, new ArrayList<>()); map.get(key).add(0); } }