createComponentModal(element, modalShouldBeOpened, currentValue) {
    return new ComponentModal(this, element, modalShouldBeOpened, currentValue, this._referenceAttributeName);
  }
Create a new component modal for this component.
@param {HTMLElement} element - The element to attach the modal to.
@param {boolean} modalShouldBeOpened - TRUE if the modal should open immediately.
@param {any} currentValue - The current value of the component.
@returns {ComponentModal} - The created component modal.