public <T> List<T> markupArrayElements(Class<T> clazz, MarkupSession session)
			throws IOException, CancelledException {
		if (len == 0) {
			return List.of();
		}

		List<T> elementList = readList(clazz);
		session.markup(elementList, true);
		return elementList;
	}
Marks up each element of the array, useful when the elements are themselves structures.

@param <T> element type
@param clazz structure mapped class of element
@param session state and methods to assist marking up the program
@return list of element instances
@throws IOException if error reading
@throws CancelledException if cancelled
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/golang/rtti/GoSlice.java