private void indent(Writer out, int level) throws IOException {
    if (currentFormat.indent == null ||
        currentFormat.indent.isEmpty()) {
      return;
    }

    for (int i = 0; i < level; i++) {
      out.write(currentFormat.indent);
    }
  }
private void indent(Writer out, int level)