public void removeProvider(TaintSliceTreeProvider provider) {

		for (Map.Entry<String, TaintSliceTreeProvider> mapping : taintTreeProviders.entrySet()) {
			if (provider == mapping.getValue()) {
				taintTreeProviders.remove(mapping.getKey());
				tool.removeComponentProvider(mapping.getValue());
				mapping.getValue().dispose();
				return;
			}
		}

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