group documents relied to the object by class

Hello developers,

I hope you are doing well.

I would like to ask if there is a way to group documents relied on the object by class.

The screenshot below illustrates my issue.

Best regards.

Amarigh