bool OperateSelectedOverrides(PrefabUtility.OverrideOperation operation)
        {
            List <PrefabOverride> overrides = new List <PrefabOverride>();

            // Get all overrides from selection. Immediately accept any overrides with no dependencies.
            var selection = m_TreeView.GetSelection();

            for (int i = 0; i < selection.Count; i++)
            {
                PrefabOverride singleOverride = m_TreeView.FindOverride(selection[i]);
                if (singleOverride != null)
                {
                    overrides.Add(singleOverride);
                }
            }

            bool success = PrefabUtility.ProcessMultipleOverrides(m_SelectedGameObjects[0], overrides, operation, InteractionMode.UserAction);

            if (success)
            {
                EditorUtility.ForceRebuildInspectors();
            }
            return(success);
        }