GradleException formatViolationsFor(Formatter formatter,List<File> problemFiles) throws IOException {
  return new GradleException(DiffMessageFormatter.messageFor(this,formatter,problemFiles));
}

GradleException formatViolationsFor ( Formatter formatter , List < File > problemFiles ) throws IOException { return new GradleException ( DiffMessageFormatter . messageFor ( this , formatter , problemFiles ) ) ; }
returns an exception which indicates problem files nicely .
