def _update_items(self, items):
        """
        Replace the 'items' list of this OrderedSet with a new one, updating
        self.map accordingly.
        """
        self.items = items
        self.map = {item: idx for (idx, item) in enumerate(items)}

        Replace the 'items' list of this OrderedSet with a new one, updating
        self.map accordingly.
        
product/gradle-plugin/src/main/python/setuptools/_vendor/ordered_set.py