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;
}

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 ; }
converts the given diagnostics to strings ( as they would appear in a source file individually )
