public final String format(Object content, Object... args) {
        StringBuilder result = new StringBuilder();
        CodeFormatter.run(result, this, Objects.requireNonNull(content).toString(), args);
        return result.toString();
    }
Creates a formatted string using formatter expressions and variadic
arguments.

<p>Important: if the formatters that are executed while formatting the
given {@code content} string mutate the AbstractCodeWriter, it could leave the
SimpleCodeWriter in an inconsistent state. For example, some AbstractCodeWriter
implementations manage imports and dependencies automatically based on
code that is referenced by formatters. If such an expression is used
with this format method but the returned String is never written to the
AbstractCodeWriter, then the AbstractCodeWriter might be mutated to track dependencies
that aren't actually necessary.

<pre>{@code
SimpleCodeWriter = new SimpleCodeWriter();
String name = "Person";
String formatted = writer.format("Hello, $L", name);
assert(formatted.equals("Hello, Person"));
}</pre>

@param content Content to format.
@param args String arguments to use for formatting.
@return Returns the formatted string.
@see #write
@see #putFormatter
smithy-utils/src/main/java/software/amazon/smithy/utils/AbstractCodeWriter.java