code: public static Appendable withFormatter(Appendable self, @ClosureParams(value=SimpleType.class, options="java.util.Formatter") Closure closure) {
          Formatter formatter = new Formatter(self);
          callWithFormatter(closure, formatter);
          return self;
      }
docs: Invokes a Closure that uses a Formatter taking care of resource handling.
  A Formatter is created and passed to the Closure as its argument.
  After the Closure executes, the Formatter is flushed and closed releasing any
  associated resources.
  
  @param self    an Appendable
  @param closure a 1-arg Closure which will be called with a Formatter as its argument
  @return the Appendable on which this operation was invoked
  @since 2.1.0