@Override
	public void run(TaskMonitor monitor) {
		try {
			buildAndDisplayGraph(monitor);
		}
		catch (GraphException e) {
			Msg.showError(this, null, "Graph Error",
				"Can't create graph display: " + e.getMessage(), e);
		}
		catch (CancelledException e1) {
			// do nothing
		}
	}
Task for creating PCode data flow graphs from decompiler output
Ghidra/Features/Decompiler/src/main/java/ghidra/app/plugin/core/decompile/actions/PCodeDfgGraphTask.java