code: public static void writeToPath(BitMatrix matrix, String format, Path file) throws IOException {
      writeToPath(matrix, format, file, DEFAULT_CONFIG);
    }
docs: Writes a {@link BitMatrix} to a file with default configuration.
  
  @param matrix {@link BitMatrix} to write
  @param format image format
  @param file file {@link Path} to write image to
  @throws IOException if writes to the stream fail
  @see #toBufferedImage(BitMatrix)