docs: protected CollectionMatch getCollectionMatch(List<WebResourceCollection> webResourceCollections, String resourceName, String method) {
          CollectionMatch bestMatch = getInitialCollectionMatch();
          for (WebResourceCollection webResourceCollection : webResourceCollections) {
  
              CollectionMatch currentMatch = getCollectionMatchForWebResourceCollection(webResourceCollection, resourceName, method);
              if (currentMatch != null) {
                  bestMatch = selectBestCollectionMatch(bestMatch, currentMatch);
              }
  
              if (bestMatch != null && bestMatch.isExactMatch()) {
                  break;
              }
          }
  
          return bestMatch;
      }