@Override
	protected void decompilerActionPerformed(DecompilerActionContext context) {
		PluginTool tool = context.getTool();
		GraphDisplayBroker service = tool.getService(GraphDisplayBroker.class);
		if (service == null) {
			Msg.showError(this, tool.getToolFrame(), "AST Graph Failed",
				"Graph Display Broker service not found!\n" +
					"Please add a Graph Display Broker service");
			return;
		}

		HighFunction highFunction = context.getHighFunction();
		PCodeDfgGraphTask task = new PCodeDfgGraphTask(tool, service, highFunction);
		new TaskLauncher(task, tool.getToolFrame());
	}
Action to create a PCode control data graph based on decompiler output
Ghidra/Features/Decompiler/src/main/java/ghidra/app/plugin/core/decompile/actions/PCodeDfgAction.java