@Override
			public void run() {

				monitor.setMessage("Expanding Paths");
				monitor.setIndeterminate(true);

				try {
					for (TreePath path : paths) {
						expandPath(jTree, path, depth, monitor);
					}
				}
				catch (CancelledException ce) {
					// ignored
				}
				monitor.setProgress(monitor.getMaximum());
			}
A GTree task to fully expand a tree node to a maximal depth.
Ghidra/Framework/Docking/src/main/java/docking/widgets/tree/tasks/GTreeExpandNodeToDepthTask.java