@Override
    public String toString() {
        List<String> ruleStrings = new ArrayList<>();
        for (Rule rule : rules) {
            ruleStrings.add(rule.toString());
        }
        return super.toString() + StringUtils.indent(String.join("\n", ruleStrings), 2);
    }
Gets the rules contained within this tree.

@return the rules within this tree.
smithy-rules-engine/src/main/java/software/amazon/smithy/rulesengine/language/syntax/rule/TreeRule.java