private TreePath findDescendant(TreePath path, String name) {
		ProgramNode node = (ProgramNode) path.getLastPathComponent();
		if (node.getName().equals(name)) {
			return node.getTreePath();
		}

		if (node.getAllowsChildren() && !node.wasVisited()) {
			tree.visitNode(node);
		}
		for (int i = 0; i < node.getChildCount(); i++) {
			ProgramNode child = (ProgramNode) node.getChildAt(i);
			TreePath p = findDescendant(child.getTreePath(), name);
			if (p != null) {
				return p;
			}
		}
		return null;
	}
A Module or Fragment was renamed, so find all nodes with oldName and update them
with the new name and new Group object.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/programtree/ProgramListener.java