I’ve describe an idea how to circumvent:
I simply gather the information upfront and store them in metadata. Then I can access the parent group labels even from inside the widget code: