Supply the method which will generate a string with captured variables of your enclosing method.
Return the string generated by the formatMethod.