Use non-deprecated MarkupContainer#visitChildren(Class, IVisitor)