public static void selectTreeNodeByText(final JTree tree, final String text) {
		runSwing(() -> {
			TreePath path = findTreePathToText(tree, text);
			if (path == null) {
				throw new RuntimeException("tree path is null.");
			}
			tree.expandPath(path);
		}, false);

		waitForSwing();

		runSwing(() -> {
			TreePath path = findTreePathToText(tree, text);
			if (path == null) {
				throw new RuntimeException("tree path is null.");
			}
			tree.getSelectionModel().setSelectionPath(path);
		}, false);
	}
Selects a tree node in the indicated tree with the specified text. 
The matching tree node is determined by comparing the specified text 
with the string returned by the tree node's toString() method.
<br> Note: This method affects the expansion state of the tree. It
will expand nodes starting at the root until a match is found or all
of the tree is checked.
@param tree the tree
@param text the tree node's text
Ghidra/Features/ProgramDiff/src/test.slow/java/ghidra/app/plugin/core/diff/DualProgramTest.java