@Override
  public Object[] toArray() {
    return getArrayList().toArray();
  }
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