public static List<TestDiagnostic> readDiagnostics(Iterable<File> toRead,boolean omitEmptyDiagnostics){
  List<TestDiagnosticLine> lines=readDiagnosticLines(toRead,omitEmptyDiagnostics);
  List<TestDiagnostic> diagnostics=new ArrayList<TestDiagnostic>((int)(lines.size() + lines.size() * 0.1));
  for (  TestDiagnosticLine line : lines) {
    diagnostics.addAll(line.getDiagnostics());
  }
  return diagnostics;
}

public static List < TestDiagnostic > readDiagnostics ( Iterable < File > toRead , boolean omitEmptyDiagnostics ) { List < TestDiagnosticLine > lines = readDiagnosticLines ( toRead , omitEmptyDiagnostics ) ; List < TestDiagnostic > diagnostics = new ArrayList < TestDiagnostic > ( ( int ) ( lines . size ( ) + lines . size ( ) * 0.1 ) ) ; for ( TestDiagnosticLine line : lines ) { diagnostics . addAll ( line . getDiagnostics ( ) ) ; } return diagnostics ; }
reads diagnostics from the comments of a set of java file .
