Won't `value` always be a single thing here? In that case we can just put `Arrays.asList(value, previous)` in the map, right?