private boolean rootNameChanged(DomainObjectChangedEvent event) {
		Program sourceProgram = (Program) event.getSource();
		if (plugin.getCurrentProgram() != sourceProgram) { // yes '=='
			// the plugin's active program is not changed
			return false;
		}

		return event.contains(PROGRAM_TREE_RENAMED, RENAMED);
	}
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