Is there an alternative for findChildrenOfAnyType which doesn't descend found elements? I want to create a structure view with TreeElements, but I don't want all sub sub sub elements to be also listed directly below the root element.
If not: what is the best way to realize this? I mean manually traversing should be the last choice, shouldn't it? It would ignore compiled psi element restrictions etc.