code: public static void addDisablingOverlay(Element element) {
  
          Element overlay = DOM.createDiv();
          overlay.addClassName(I_CmsLayoutBundle.INSTANCE.generalCss().disablingOverlay());
          element.getStyle().setPosition(Position.RELATIVE);
          element.appendChild(overlay);
      }
docs: Adds an overlay div to the element.<p>
  
  @param element the element