static register(element, callback) {
      let effectiveElement = element;
      if ((0, _UI5Element.instanceOfUI5Element)(effectiveElement)) {
        effectiveElement = effectiveElement.getDomRef();
      }
      if (effectiveElement instanceof HTMLElement) {
        observe(effectiveElement, callback);
      } else {
        console.warn("Cannot register ResizeHandler for element", element); // eslint-disable-line
      }
    }
@static
@public
@param {*} element UI5 Web Component or DOM Element to be observed
@param {*} callback Callback to be executed