code: public void closeAllEmptyChildren() {
  
          for (Widget child : m_children) {
              if (child instanceof CmsTreeItem) {
                  CmsTreeItem item = (CmsTreeItem)child;
                  if (item.isOpen()) {
                      if (item.getChildCount() == 0) {
                          item.setOpen(false);
                      } else {
                          item.closeAllEmptyChildren();
                      }
                  }
              }
          }
      }
docs: Closes all empty child entries.<p>