class TreeVisitorValidator implements Validator {

    private final Validator validator;

    public TreeVisitorValidator(Validator validator) {
        this.validator = validator;
    }

    @Override
    public final void accept(Node node, ProblemReporter reporter) {<FILL_FUNCTION_BODY>}
}

        validator.accept(node, reporter);
        for (Node child : node.getChildNodes()) {
            accept(child, reporter);
        }
    
<no_super_class>