getCommandInfosFor = (oControl) => {
		const aCommandInfos = [];
		const aDependents = oControl.getDependents?.() || [];

		for (const oDependent of aDependents) {
			if (oDependent.isA("sap.ui.core.CommandExecution") && oDependent.getVisible()) {
				const oCommandInfo = oDependent._getCommandInfo();
				const sKbd = getNormalizedShortcutString(oCommandInfo.shortcut);

				aCommandInfos.push({
					name: oDependent.getCommand(),
					kbd: [{
						raw: sKbd,
						translated: translateShortcut(sKbd)
					}],
					description: oCommandInfo.description
				});
			}
		}
		return aCommandInfos;
	}
Retrieves the command information for a given control.
@param  {sap.ui.core.Control} oControl The control to analyze.
@return {Array} List of command information objects.