}
private void visualize(FlowGraph flowGraph, StageGraph stageGraph) throws IOException {
assert flowGraph != null;
assert stageGraph != null;
FlowVisualizer visualizer = new FlowVisualizer(environment);
visualizer.visualize(flowGraph);
visualizer.visualize(stageGraph);
for (StageBlock stage : stageGraph.getStages()) {
visualizer.visualize(stage);
}
}