@Override
	protected String getTypeDeclString() throws IOException {
		// type PointerTypeName *elementType
		String selfName = getName();
		String elemName = programContext.getGoTypes().getTypeName(elem);
		String defStr = "*" + elemName;
		String defStrWithLinks =
			"*" + 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/GoPointerType.java