public Consumer<T> consumer(Consumer<T> consumer) {
        return consumer;
    }
A simple helper method that makes it easier to invoke the built-in {@code C}
(call) formatter using a {@link Consumer} where {@code T} is the specific type
of {@link AbstractCodeWriter}.

<p>Instead of having to type this:

<pre>{@code
writer.write("$C", (Consumer<MyWriter>) (w) -> w.write("Hi"));
}</pre>

<p>You can write:

<pre>{@code
writer.write("$C", writer.consumer(w -> w.write("Hi"));
}</pre>

@param consumer The consumer to call.
@return Returns the consumer as-is, but cast as the appropriate Java type.
smithy-utils/src/main/java/software/amazon/smithy/utils/AbstractCodeWriter.java