docs: public static File newFile(File baseDir, String... segments) {
          File f = baseDir;
          for (String segment : segments) {
              f = new File(f, segment);
          }
          return f;
      }