levelOfComponentsInCollection

Calculate the level of the target Component/Section. The level here means how many bracket pairs are needed to break until reaching the component type. For example, the level of List is 1, and the level of List> is 2.

Return

the level of the target component, or 0 if the target isn't a component.