docs: public static File toFile(final URI filename) {
          if (filename == null) {
              return null;
          }
          final URI f = stripFragment(filename);
          if ("file".equals(f.getScheme()) && f.getPath() != null && f.isAbsolute()) {
              return new File(f);
          } else {
              return toFile(f.toString());
          }
      }