def render
      return render_no_object_warning if list_item.object? && !object_available?

      content_tag opts[:wrapper_element], class: html_classes do
        if list_item.has_children?
          concat render_item
          concat content_tag opts[:child_wrapper_element], render_children, { class: opts[:child_wrapper_class] }, false
        else
          render_item
        end
      end
    end
def render
      return render_no_object_warning if list_item.object? && !object_available?

      content_tag opts[:wrapper_element], class: html_classes do
        if list_item.has_children?
          concat render_item
          concat content_tag opts[:child_wrapper_element], render_children, { class: opts[:child_wrapper_class] }, false
        else
          render_item
        end
      end
    end
@param list_item [ListItem] object to render
 @param opts [Hash] options hash
 Renders the provided list_item

 @return [String] the rendered list item (including possible children)