question: public static List < String > diagnosticsToString ( List < TestDiagnostic > diagnostics ) { final List < String > strings = new ArrayList < String > ( diagnostics . size ( ) ) ; for ( TestDiagnostic diagnostic : diagnostics ) { strings . add ( diagnostic . toString ( ) ) ; } return strings ; }
target:  Converts the given diagnostics to strings (as they would appear in a source file individually)