code: public static CmsInlineEntityWidget createWidgetForEntity(
          Element element,
          I_CmsInlineFormParent formParent,
          CmsEntity parentEntity,
          CmsAttributeHandler attributeHandler,
          int attributeIndex,
          I_CmsInlineHtmlUpdateHandler htmlUpdateHandler,
          I_CmsWidgetService widgetService) {
  
          CmsInlineEntityWidget widget = new CmsInlineEntityWidget(
              element,
              formParent,
              parentEntity,
              attributeHandler,
              attributeIndex,
              htmlUpdateHandler,
              widgetService);
          CmsInlineEditOverlay.getRootOverlay().addButton(widget, getButtonTop(element));
          attributeHandler.updateButtonVisibilty(widget);
          return widget;
      }
docs: Creates the inline edit widget and injects it next to the context element.<p>
  
  @param element the context element
  @param formParent the parent widget
  @param parentEntity the parent entity
  @param attributeHandler the attribute handler
  @param attributeIndex the attribute value index
  @param htmlUpdateHandler handles HTML updates if required
  @param widgetService the widget service
  
  @return the widget instance