@SmithyInternalApi
        public Map<String, Endpoint> collect() {
            arrayNode(endpointRuleSet.expectArrayMember(RULES), "/" + RULES);
            return visitedEndpoints;
        }
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