public static void writeFile(
    @NotNull IonWriter writer,
    @NotNull String fieldName,
    @Nullable File file
  ) throws IOException {
    writeString(writer, fieldName, file == null ? null : file.getPath());
  }
public static void writeFile(
    @NotNull IonWriter writer,
    @NotNull String fieldName,
    @Nullable File file
  )