@Override
  public void clear() {
    header = null;
    tail = null;
    count = 0;
  }
Only List type parameter is legal, because it is in order.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/tsfile/TsFileResourceList.java