getPositionById(id) {
    return this._idToIndex[id];
  }
Returns the position of the options belonging to the component with the specified
id.
@param {ComponentId} id Id of the component to retrieve the options for
@returns {number} The position of the component options in the list.