public static List <ToolStripMenuItem> smethod_9(this ContextMenuStrip contextMenuStrip_0)
    {
        List <ToolStripMenuItem> list = new List <ToolStripMenuItem>();

        foreach (ToolStripItem item in contextMenuStrip_0.Items)
        {
            ToolStripMenuItem toolStripMenuItem = item as ToolStripMenuItem;
            if (toolStripMenuItem != null)
            {
                list.AddRange(toolStripMenuItem.smethod_8());
            }
        }
        return(list);
    }
    public static List <ToolStripMenuItem> smethod_8(this ToolStripMenuItem toolStripMenuItem_0)
    {
        List <ToolStripMenuItem> list = new List <ToolStripMenuItem>();

        list.Add(toolStripMenuItem_0);
        foreach (ToolStripItem dropDownItem in toolStripMenuItem_0.DropDownItems)
        {
            if (dropDownItem is ToolStripMenuItem)
            {
                ToolStripMenuItem toolStripMenuItem_ = dropDownItem as ToolStripMenuItem;
                list.AddRange(toolStripMenuItem_.smethod_8());
            }
        }
        return(list);
    }