void (List<? extends CompilationUnitPatcher> patchers, List<? super GroovyCompilerMessage> compilerMessages, CompilationUnit unit, final AstAwareResourceLoader loader, List<File> srcFiles) { if (!patchers.isEmpty()) { for (CompilationUnitPatcher patcher : patchers) { try { patcher.patchCompilationUnit(unit, loader, srcFiles.toArray(new File[0])); } catch (LinkageError e) { addExceptionInfo(compilerMessages, e, "Couldn't run " + patcher.getClass().getName()); } } } }