private void updatePopupMenuName(boolean hasSelection) {
		if (hasSelection) {
			getPopupMenuData().setMenuPath(new String[] { "Collapse All Data In Selection" });
			setDescription("Closes all data recursively in the current selection.");
		}
		else {
			getPopupMenuData().setMenuPath(new String[] { "Collapse All Data" });
			setDescription(
				"Closes all data recursively from the outer most component containing this location.");
		}
	}
Action for recursively collapsing an expandable data element in the listing.  This action
can be invoked on an expandable data element or any sub element and will close the
outer most data element and all child elements of that structure.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/codebrowser/actions/CollapseAllDataAction.java