private static @NotNull List<Path> toPaths(Collection<String> paths) {
    List<Path> result = new ArrayList<>();
    for (String s : paths) {
      result.add(Paths.get(s));
    }
    return result;
  }
private static @NotNull List<Path> toPaths(Collection<String> paths)