Hm, looking at it again it seems like calling _getFilteredChildren()_ could simplify things a lot, yes.
The variable _statement_ is created in _childrenInvoker()_, though, so in theory someone might override that method to introduce some kind of custom code I think?
Hopefully I'll find some time next week to review my changes once more