private static List<File> toFiles(List<String> paths) {
    final List<File> files = new ArrayList<>(paths.size());
    for (String path : paths) {
      files.add(new File(path));
    }
    return files;
  }
private static List<File> toFiles(List<String> paths)