The cached version of parentsId is unmodifiable whereas this version won't be. It shouldn't be a problem right now, but could become one later. Maybe it would be better to do `parentIds = Collections.unmodifiableList(parentIds)`  right before adding the list to the cache, this way the collection will be exactly the same.