@Override
	protected String getTypeDeclString() throws IOException {
		// type CustomSliceType []elementType
		String selfName = getName();
		String elemName = getElement().getName();
		String defStr = "[]%s".formatted(elemName);
		String defStrWithLinks = "[]%s".formatted(
			AddressAnnotatedStringHandler.createAddressAnnotationString(elem, elemName));
		boolean hasName = !defStr.equals(selfName);

		return "type %s%s".formatted(hasName ? selfName + " " : "", defStrWithLinks);
	}
Returns a reference to the element's type.
@return reference to the element's type
@throws IOException if error reading data
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/golang/rtti/types/GoSliceType.java