code: public boolean hasChildren(Object element) {
      if (element instanceof DFSContent) {
        DFSContent content = (DFSContent) element;
        return content.hasChildren();
      }
      return false;
    }
docs: /* @inheritDoc