private MenuItem.MenuAction ScanDel(LCDMenu root, MenuItem item, ShipyardType?itemType = null)
        {
            MenuItem.MenuAction handler = () =>
            {
                long id = root.Panel.CubeGrid.EntityId;

                root.SetCurrentItem(item);
                if (itemType.HasValue)
                {
                    Communication.SendYardCommand(id, itemType.Value);
                }
                if (itemType == 0)
                {
                    foreach (ShipyardItem yard in ProcessShipyardDetection.ShipyardsList)
                    {
                        if (yard.EntityId == id)
                        {
                            _stats.Remove(yard);
                            break;
                        }
                    }
                }
            };
            return(handler);
        }
        private MenuItem.MenuAction StopDel(LCDMenu root, MenuItem item)
        {
            MenuItem.MenuAction handler = () =>
            {
                long id = root.Panel.CubeGrid.EntityId;

                root.SetCurrentItem(item);
                Communication.SendYardCommand(id, ShipyardType.Disabled);
            };
            return(handler);
        }