private void updateFolderNode(DomainFolder parent) {
		DomainFolderNode folderNode = findDomainFolderNode(parent, true);
		if (folderNode == null) {
			return;
		}
		DomainFolder folder = folderNode.getDomainFolder();
		// loop through children looking for nodes whose underlying model object
		// does not have this folder as its parent;
		List<GTreeNode> children = folderNode.getChildren();
		for (GTreeNode child : children) {
			if (child instanceof DomainFileNode) {
				if (folder.getFile(child.getName()) == null) {
					folderNode.removeNode(child);
				}
			}
			else if (child instanceof DomainFolderNode) {
				if (folder.getFolder(child.getName()) == null) {
					folderNode.removeNode(child);
				}
			}
		}
	}
Class to handle changes when a domain folder changes; updates the
tree model to reflect added/removed/renamed nodes.
Ghidra/Framework/Project/src/main/java/ghidra/framework/main/datatree/ChangeManager.java