docs: private static Path toPath(@Nonnull File file) throws IOException {
          try {
              return file.toPath();
          } catch (InvalidPathException e) {
              throw new IOException(e);
          }
      }