function getGoldenLocaleArgumentIds(goldenLhl) {
  /** @type {Record<string, Array<string>>} */
  const goldenLocaleArgumentIds = {};

  for (const [messageId, {message}] of Object.entries(goldenLhl)) {
    const parsedMessageElements = MessageParser.parse(escapeIcuMessage(message), {ignoreTag: true});
    const goldenArgumentElements = collectAllCustomElementsFromICU(parsedMessageElements);
    const goldenArgumentIds = [...goldenArgumentElements.keys()].sort();

    goldenLocaleArgumentIds[messageId] = goldenArgumentIds;
  }

  return goldenLocaleArgumentIds;
}
Returns a copy of `goldenLhl` with the messages replaced with a sorted list of
argument ids found in each message.
@param {LhlMessages} goldenLhl
@return {Record<string, Array<string>>}