docs: private static void createFacet(List<ComponentFacet> facetList,
        Map<Integer, Integer> positionsData,
        Map<MtasSpanQuery, Map<Integer, Integer>> spansNumberData,
        Map<String, SortedMap<String, int[]>> facetData, List<Integer> docSet)
        throws IOException {
  
      if (facetList != null) {
        for (ComponentFacet cf : facetList) {
          if (cf.baseFields.length > 0) {
            createFacetBase(cf, 0, cf.dataCollector, positionsData,
                spansNumberData, facetData,
                docSet.toArray(new Integer[docSet.size()]));
          }
        }
      }
    }