that does remind me of an old experimental tool I built that allows you to specify relationship patterns but without invoking the weird side effects of collectors. I haven't touched it in six years, so I make no guarantee that it even still works. At one time, one of the largest companies in the world was using it to avoid the PE virtual package problem.
https://github.com/binford2k/binford2k-manifold