docs: @SuppressWarnings("unchecked")
    private void initNewListBasic(int maxNumberOfTerms) throws IOException {
      if (!closed) {
        position = 0;
        newPosition = 0;
        newCurrentPosition = 0;
        newSize = maxNumberOfTerms + size;
        newKeyList = new String[newSize];
        newSourceNumberList = new int[newSize];
        newErrorNumber = new int[newSize];
        newErrorList = (HashMap<String, Integer>[]) new HashMap<?, ?>[newSize];
        newKnownKeyFoundInSegment = new HashSet<>();
        if (hasSub) {
          newSubCollectorListNextLevel = new MtasDataCollector[newSize];
        }
      } else {
        throw new IOException("already closed");
      }
    }