docs: static Document.OutputSettings outputSettings(Node node) {
          Document owner = node.ownerDocument();
          return owner != null ? owner.outputSettings() : (new Document("")).outputSettings();
      }