private void appendIndent(int indent, StringBuilder b) {
        b.append(" ".repeat(Math.max(0, indent)));
    }
Returns the position of the end of a balanced chunk of at most the given size, or 0 if there is no such chunk
vespajlib/src/main/java/com/yahoo/text/ExpressionFormatter.java