docs: private static void createTokens(List<ComponentToken> statsTokenList,
        Map<Integer, Integer> tokensData, List<Integer> docSet)
        throws IOException {
      if (statsTokenList != null) {
        for (ComponentToken token : statsTokenList) {
          token.dataCollector.initNewList(1);
          Integer tmpValue;
          long[] values = new long[docSet.size()];
          int value;
          int number = 0;
          if (tokensData != null) {
            for (int docId : docSet) {
              tmpValue = tokensData.get(docId);
              value = tmpValue == null ? 0 : tmpValue.intValue();
              if (((token.minimumLong == null) || (value >= token.minimumLong))
                  && ((token.maximumLong == null)
                      || (value <= token.maximumLong))) {
                values[number] = value;
                number++;
              }
            }
          }
          if (number > 0) {
            token.dataCollector.add(values, number);
          }
          token.dataCollector.closeNewList();
        }
      }
    }