void setUseCustomStorage(boolean enable) {
		if (enable == allowCustomStorage) {
			return;
		}
		allowCustomStorage = enable;
		if (!enable) {
			removeExplicitThisParameter();
			DataType returnDt = removeExplicitReturnStoragePtrParameter();
			if (returnDt != null) {
				returnInfo.setFormalDataType(returnDt);
				returnInfo.setStorage(VariableStorage.UNASSIGNED_STORAGE);
			}
			updateParameterAndReturnStorage();
		}
		else {
			switchToCustomStorage();
		}
	}
Change the enablement of custom storage
@param enable true if custom storage should be enable, else false to
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/function/editor/FunctionData.java