public static void InjectDesignatorFunctionality(ref IEnumerable <Gizmo> __result)
        {
            var toggle = CommandFromEnumerator(__result);

            if (toggle == null)
            {
                return;                            // safety against mod shenanigans
            }
            AllowThingToggleHandler.EnhanceStockAllowToggle(toggle);
            resultArray[0] = toggle;
            __result       = resultArray;       // return a new enumerable to ensure the gizmo grid uses the same toggle instance
        }
 private static void PrepareReverseDesignatorContextMenus()
 {
     ClearReverseDesignatorPairs();
     foreach (var reverseDesignator in AllowToolUtility.EnumerateReverseDesignators())
     {
         TryBindDesignatorToProvider(reverseDesignator);
     }
     foreach (var designator in AllowThingToggleHandler.GetImpliedReverseDesignators())
     {
         TryBindDesignatorToProvider(designator);
     }
 }