[DiagnosticPrinter] Use the appropriate method to print a Twine object in a