docs: public static @Nonnull Document parse(@Nonnull File file, @Nonnull String encoding) throws SAXException, IOException {
          if (!file.exists() || !file.isFile()) {
              throw new IllegalArgumentException(String.format("File %s does not exist or is not a 'normal' file.", file.getAbsolutePath()));
          }
  
          try (InputStream fileInputStream = Files.newInputStream(file.toPath());
              InputStreamReader fileReader = new InputStreamReader(fileInputStream, encoding)) {
              return parse(fileReader);
          } catch (InvalidPathException e) {
              throw new IOException(e);
          }
      }