function restoreFocusToDataCell(oTable, oKeyboardExtension) {
		if (!jQuery(oKeyboardExtension._oLastFocus.Ref).hasClass("sapUiTableCell")) {
			const oParentCell = TableUtils.getParentCell(oTable, oKeyboardExtension._oLastFocus.Ref);

			if (oParentCell && oParentCell[0] && jQuery(oParentCell[0]).hasClass("sapUiTableCell")) {
				oParentCell[0].focus();
			} else {
				oKeyboardExtension._oLastFocus.Ref.focus();
			}
		} else {
			oKeyboardExtension._oLastFocus.Ref.focus();
		}
		oKeyboardExtension._oLastFocus = null;
	}
Sets the focus depending on the noData or overlay mode.
The previous focused element is given (potentially this is not anymore the active focused element,
e.g. see Table.setShowOverlay -> tue to CSS changes the focused element might be hidden which forces a focus change).

@param {HTMLElement} oPreviousFocusRef The previously focused element.