public static void AddToMenu(GenericMenu menu, WindowState state)
        {
            var items = SelectionManager.SelectedItemOfType <T>().ToArray();

            if (items.Length < 1)
            {
                return;
            }

            var actionsToAdd = actions.Where(i => !TypeUtility.IsHiddenInMenu(i.GetType())).ToList();

            if (actionsToAdd.Any())
            {
                menu.AddSeparator(string.Empty);
            }
            else
            {
                return;
            }

            actionsToAdd.ForEach(action =>
            {
                action.AddSelfToMenu(menu, state, items);
            });
        }
        public static void AddToMenu(GenericMenu menu, WindowState state)
        {
            var items = SelectionManager.SelectedItemOfType <T>().ToArray();

            if (items.Length < 1 || !actions.Any())
            {
                return;
            }

            menu.AddSeparator("");
            actions.ForEach(action =>
            {
                if (!TypeUtility.IsHiddenInMenu(action.GetType()))
                {
                    action.AddSelfToMenu(menu, state, items);
                }
            });
        }