private void arrayNode(ArrayNode node, String parentPath) {
            List<Node> elements = node.getElements();
            for (int i = 0; i < elements.size(); i++) {
                Node element = elements.get(i);
                switch (element.getType()) {
                    case OBJECT: {
                        objectNode(element.expectObjectNode(), parentPath + "/" + i);
                        break;
                    }
                    case ARRAY: {
                        arrayNode(element.expectArrayNode(), parentPath + "/" + i);
                        break;
                    }
                    default:
                        break;
                }
            }
        }
Collects the mapped JSON pointer paths to {@link Endpoint}s.

@return a map of JSON pointer paths to {@link Endpoint}s.
smithy-rules-engine/src/main/java/software/amazon/smithy/rulesengine/language/EndpointRuleSet.java