private boolean isDescendantOf(RepositoryFolder folder) {
		RepositoryFolder rf = parent;
		while (rf != null) {
			if (rf == folder) {
				return true;
			}
			rf = rf.parent;
		}
		return false;
	}
Returns true if this folder is a descendant of the specified folder
Ghidra/Features/GhidraServer/src/main/java/ghidra/server/store/RepositoryFolder.java