private int computeIndentLevel(Data data) {
		int indentLevel = 0;
		while ((data = data.getParent()) != null) {
			indentLevel++;
		}
		return indentLevel;
	}
Computes the sub-component level of the given data object.
Ghidra/Features/Base/src/main/java/ghidra/app/util/viewer/field/OpenCloseFieldFactory.java