in tools/src/main/scala/magnolify/tools/SchemaPrinter.scala [120:130]
private def nested(header: Doc, body: Doc, footer: Doc): Doc =
header + (Doc.hardLine + body).nested(2) + Doc.hardLine + footer
private def quoteIdentifier(id: String): String = {
import scala.reflect.internal.Chars
if (id.headOption.exists(Chars.isIdentifierStart) && id.tail.forall(Chars.isIdentifierPart)) {
id
} else {
s"`$id`"
}
}