fnGetContentDensity = function(sFnName, oObject) {
				if (!oObject[sFnName]) {
					return;
				}

				for (let i = 0; i < aContentDensityStyleClasses.length; i++) {
					if (oObject[sFnName](aContentDensityStyleClasses[i])) {
						return aContentDensityStyleClasses[i];
					}
				}
			}
Returns the content density style class which is relevant for the given control. First it tries to find the
definition via the control API. While traversing the controls parents, it's tried to find the closest DOM
reference. If that is found, the check will use the DOM reference to find the closest content density style class
in the parent chain. This approach caters both use cases: content density defined at DOM and/or control level.

If at the same level, several style classes are defined, this is the priority:
sapUiSizeCompact, sapUiSizeCondensed, sapUiSizeCozy

@param {sap.ui.table.Table} oControl Instance of the table.
@returns {string | undefined} name of the content density style class or undefined if none was found.