Select an object, then use this function to select the group that the object belongs to

Could you add a function to jump from selected objects to their target group?

Right now I have to scroll one by one with Ctrl + mouse wheel to find the group I need. For example, I want to move yellow‑colored objects into the pink group, but my currently active group is blue. I don’t want to scroll and jump through entries to locate it. Instead, I hope to pick any object inside the pink group, then directly jump to and select that pink group. After that I can select the yellow objects and re‑assign them into the pink group.

Would it be possible to add this feature to the pie menu?In other words: select an object, then use this function to select the group that the object belongs to.