for (CompilationUnit compilationUnit : compilationUnits) {
FileRef fileRef = compilationUnit.getSourceFileRef().removeExtension().addSuffix(suffix);
try {
Writer writer = fileRef.openWriter(Charsets.US_ASCII);
try {
DotWriter out = new DotWriter(writer);
GraphRenderer<Object> renderer =
new ReflectiveGraphRenderer(phase.name().toLowerCase());
renderer.renderGraph(out, phase.getForest(compilationUnit).getChildren());
} finally {
writer.close();