private void doSetFunction(Function function) {
		currentFunction = function;
		notifyContextChanged();
		if (currentFunction == null) {
			clearTrees();
			return;
		}

		// NB: This will clear out the trees and set a pending node because the "update" may take a while.
		// in our case I don't think that is the case, but we'll keep this.
		resetTrees();
		updateTitle();

		// This is where the real update and tree building happens.
		// this actually calls this classes doUpdate method.
		reloadUpdateManager.update();
	}
A variable used to restrict open-ended operations, like expanding all nodes or filtering.
Ghidra/Features/DecompilerDependent/src/main/java/ghidra/app/plugin/core/decompiler/taint/TaintSliceTreeProvider.java