function needSyncDomRemoval(bSuppressInvalidate, bHasNoParent) {
		const bKeepDom = (bSuppressInvalidate === "KeepDom");
		const oDomRef = this.getDomRef();

		// Conditions that require sync DOM removal
		return (bSuppressInvalidate === true || // Explicit supression of invalidation
				(!bKeepDom && bHasNoParent) || // No parent and DOM should not be kept
				this.isA("sap.ui.core.PopupInterface") || // The element is a popup
				RenderManager.isPreservedContent(oDomRef)); // The element is part of the 'preserve' area.
	}
Determines if the DOM removal needs to be performed synchronously.

 @param {boolean|string} bSuppressInvalidate - Whether invalidation is suppressed. If set to "KeepDom", the DOM is retained.
 @param {boolean} bHasNoParent Whether the element has no parent. If true, it suggests that the element is being removed from the DOM tree.
 @returns {boolean} Returns true, if synchronous DOM removal is needed; otherwise 'false'.