您应该使用该方法Map::computeIfAbsent来创建或获取List:
Map::computeIfAbsent
List
myMap.computeIfAbsent(MY_KEY, k -> new ArrayList<>()).add(value);