private int computeActualLength(int[] levels) {
		int size = levels.length;
		for (int i = size - 1; i >= 0; i--) {
			if (levels[i] != -1) {
				return i + 1;
			}
		}
		return 0;
	}
Marks the composite at the given address and component path as closed
@param address the address of the composite to close
@param path the component path of the composite to close. Used for
composites inside of other composites.
Ghidra/Features/Base/src/main/java/ghidra/app/util/viewer/util/OpenCloseManager.java