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