def _update_highlight_regions_from_patches(self, **_) -> None:
        """
        Updates cached list of highlight regions from patches.
        """
        if self.instance.project.am_none:
            self._patch_highlights = []
        else:
            self._patch_highlights = [
                PatchHighlightRegion(patch, self) for patch in self.instance.project.kb.patches.values()
            ]
        self._set_highlighted_regions()

        Updates cached list of highlight regions from patches.
        
angrmanagement/ui/views/hex_view.py