public void showOrCreateNewSliceTree(Program program, ClangToken tokenAtCursor,
			HighVariable highVariable) {

		Msg.info(this, "showOrCreateNewSliceTree");

		if (program == null) {
			return;
		}

		String treeProviderKey =
			highVariable != null ? highVariable.toString() : tokenAtCursor.toString();

		// We will have a taint tree for each variable we are interested in.
		TaintSliceTreeProvider provider = taintTreeProviders.get(treeProviderKey);
		if (provider != null) {
			// Show a previous composed provider.
			tool.showComponentProvider(provider, true);
			return;
		}

		// did not find a provider for the key. 

		if (highVariable == null) {
			// just use the tokenAtCursor (must be a function??)
			createAndShowProvider(tokenAtCursor);
			return;
		}

		createAndShowProvider(highVariable);
	}
Plugin for tracking taint through the decompiler.
Ghidra/Features/DecompilerDependent/src/main/java/ghidra/app/plugin/core/decompiler/taint/TaintPlugin.java