toUniqueControls = function($DOMElements) {
			const aControls = [];
			$DOMElements.each((_idx, oDomRef) => {
				const oUI5Element = UI5Element.closestTo(oDomRef);
				if (oUI5Element && !aControls.includes(oUI5Element)) {
					aControls.push(oUI5Element);
				}
			});
			return aControls;
		}
Return an object with all instances of <code>sap.ui.core.Element</code>,
keyed by their ID.
Internally requires {@link sap.ui.core.ElementRegistry} or the corresponsing legacy API.
The legacy API is used when the tested app is loaded in an iframe that uses a lower UI5 version.

@returns {Object<sap.ui.core.ID,sap.ui.core.Element>}