buildMap's MutableMap receiver has its own .entries, which shadows the object's device list and breaks the index-building loop.
buildMap's MutableMap receiver has its own .entries, which shadows the object's device list and breaks the index-building loop.