code: public ContextMenuItem addItem(Resource icon) {
  
          ContextMenuItem item = addItem("");
          item.setIcon(icon);
          return item;
      }
docs: Adds new item to context menu root with given icon without caption.<p>
  
  @param icon the icon
  @return reference to newly added item