public Structure getBaseStructureDataType(DataType dataType) {
		if (dataType instanceof Pointer) {
			Pointer ptr = (Pointer) dataType;
			DataType baseDataType = ptr.getDataType();
			if (baseDataType instanceof Structure) {
				return (Structure) baseDataType;
			}
			return null;
		}

		return null;
	}
Method to return the Structure data type that the given data type points to or null
if given data type is not a pointer of if it doesn't point to a structure
@param dataType the given data type
@return  the base structure data type or null if the base data type isn't a structure
Ghidra/Features/Decompiler/ghidra_scripts/classrecovery/ExtendedFlatProgramAPI.java