@SuppressWarnings("java:S106")
  protected void printBoth(String msg) {
    System.out.println(msg);
    if (printWriter != null) {
      printWriter.println(msg);
    }
  }
@return true if the file should be scanned
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/tools/utils/TsFileSequenceScan.java