function createChangeSetVisibleFalseToRestrictedVariant(oVariant, mPropertyBag, contextBasedAdaptationId, VariantManager) {
		if (oVariant.isA("sap.ui.fl.apply._internal.flexObjects.CompVariant")) {
			var sPersistencyKey = oVariant.getPersistencyKey();
			oVariant = CompVariantState.updateVariant({
				reference: mPropertyBag.appId,
				persistencyKey: sPersistencyKey,
				id: oVariant.getId(),
				layer: mPropertyBag.layer,
				visible: false,
				adaptationId: contextBasedAdaptationId,
				forceCreate: true
			});
			return oVariant.getChanges().reverse()[0].convertToFileContent();
		}
		// Fl variant
		var oAppComponent = FlexUtils.getAppComponentForControl(mPropertyBag.control);
		var oChange = VariantManager.createVariantChange(
			oVariant.getVariantManagementReference(),
			{
				changeType: "setVisible",
				visible: false,
				variantReference: oVariant.getId(),
				layer: mPropertyBag.layer,
				appComponent: oAppComponent,
				adaptationId: contextBasedAdaptationId
			}
		);
		return oChange.convertToFileContent();
	}
Creates set visible false changes for restricted variants from layers below Customer.
@param {sap.ui.fl.apply._internal.flexObjects.Variant} oVariant - Variant flex object
@param {object} mPropertyBag - Object with parameters as properties
@param {string} mPropertyBag.appId - App reference
@param {string} mPropertyBag.layer - Working layer
@param {sap.ui.core.Control} mPropertyBag.control - Control for which the request is done
@param {string} [contextBasedAdaptationId] - ID of the context-based adaption
@param {sap.ui.fl.variants.VariantManager} VariantManager - Variant Manager module
@returns {object} Returns the change as JSON object