@Override
    public Iterator<? extends ParseTree> visitCommentBlock(CommentBlockContext ctx) {
        return getChildrenByName(ctx);
    }
This visitor will return the list of requested child nodes
analyzer/src/main/java/nl/basjes/parse/useragent/analyze/treewalker/steps/walk/stepdown/UserAgentGetChildrenVisitor.java