private void toggleTopLevelData(Data data) {
		if (data.getComponent(0) == null) {
			return;
		}
		Address addr = data.getMinAddress();
		int[] path = data.getComponentPath();

		if (isOpen(addr, path)) {
			close(addr, path);
		}
		else {
			open(addr, path);
		}
	}
Returns the index of the component that is open at the given address.
@param address the address to find the open index.
@param path the component path.
Ghidra/Features/Base/src/main/java/ghidra/app/util/viewer/util/OpenCloseManager.java