private void selectPaths(TreePath[] treePaths, TaskMonitor monitor) {

		runOnSwingThread(() -> {
			if (monitor.isCancelled()) {
				return; // we can be cancelled while waiting for Swing to run us
			}

			boolean wasEnabled = jTree.getExpandsSelectedPaths();
			if (expandingDisabled) {
				jTree.setExpandsSelectedPaths(false);
			}

			try {
				doSelectPaths(treePaths);
			}
			finally {
				if (expandingDisabled) {
					jTree.setExpandsSelectedPaths(wasEnabled);
				}
			}
		});
	}
Tells the JTree to not expand paths for each selection that is set upon it.  Doing this
will speed-up performance.   However, only call this when some other task is going to
ensure that paths are properly expanded.

@param disabled true to disable
Ghidra/Framework/Docking/src/main/java/docking/widgets/tree/tasks/GTreeSelectPathsTask.java