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();
}
} catch (IOException iox) {
alertSink.add(new IOError(fileRef, iox));