code: function updateGroupUi(uiContainer, optionsGroup) {
      removeRemovedItems(uiContainer, optionsGroup)
      updateExistingItems(uiContainer)
      addMissingItems(uiContainer, optionsGroup)
    }
docs: Updates the contents of the provided UI to reflect the options in the provided options container. The function
  removes removed options from the UI, updates the existing and adds the missing ones.
  
  @param {Element} uiContainer The element containing the constructed UI reflecting the provided options.
  @param {HTMLElement} optionsGroup The element containing the options to be reflected in the UI.