code: protected static List<EndpointInfo> extractEndpointInfo(EndpointPart root) {
          List<EndpointInfo> endpoints = new ArrayList<EndpointInfo>();
  
          root.extractEndpointInfo(endpoints, "");
  
          return endpoints;
      }
docs: This method expands a tree into the collapsed set of endpoints.
  
  @param root The tree
  @return The list of endpoints