I work for Product Owners in a small company and develop a CRM system. The customer wants us to be able to create conditional objects that can store other objects in themselves. The maximum nesting is somewhere 4. According to the developers, it is not a problem to do this, but how to present it to the user is another question. Customers do not like a simple hierarchy as it is presented in Microsoft Visual Studio. That's the question. Maybe someone has met a similar nesting and its display in the form of a hierarchy. Not necessarily the system's CRM. Anything will do for generating ideas.
I studied the CRM systems of market leaders, but unfortunately I did not find such functionality in them. They have everything already created for the user in large quantities. Choose exactly what you need. This approach does not suit us(