package org.jetbrains.dokka public trait FormatService { val extension: String fun format(nodes: Iterable, to: StringBuilder) } fun FormatService.format(node: Iterable): String = StringBuilder { format(node, this) }.toString()