code: @Restricted(NoExternalUse.class)
      public static @Nonnull Path fileToPath(@Nonnull File file) throws IOException {
          try {
              return file.toPath();
          } catch (InvalidPathException e) {
              throw new IOException(e);
          }
      }
docs: Converts a {@link File} into a {@link Path} and checks runtime exceptions.
  @throws IOException if {@code f.toPath()} throws {@link InvalidPathException}.