code: public static CmsInlineEditOverlay addOverlayForElement(Element element) {
  
          CmsInlineEditOverlay overlay = new CmsInlineEditOverlay(element);
          if (!m_overlays.isEmpty()) {
              m_overlays.get(m_overlays.size() - 1).setVisible(false);
          }
          m_overlays.add(overlay);
          RootPanel.get().add(overlay);
          overlay.updatePosition();
          overlay.checkZIndex();
          return overlay;
      }
docs: Adds an overlay surrounding the given DOM element.<p>
  
  @param element the element
  
  @return the overlay widget