public static void SetColor(this UIColorRefTracker color_tracker, MechComponentDef cdef)
 {
     if (cdef.Is <IColorComponent>(out var color))
     {
         color_tracker.SetCustomColor(color.UIColor, color.RGBColor);
     }
     else
     {
         color_tracker.SetUIColor(MechComponentDef.GetUIColor(cdef));
     }
 }
 public static void SetColor(this IEnumerable <UIColorRefTracker> color_trackers, MechComponentDef cdef)
 {
     if (cdef.Is <IColorComponent>(out var color))
     {
         color_trackers.SetCustomColor(color.UIColor, color.RGBColor);
     }
     else
     {
         foreach (var color_tracker in color_trackers)
         {
             color_tracker.SetUIColor(MechComponentDef.GetUIColor(cdef));
         }
     }
 }