public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (!(parameter is InspectionResultGrouping governing) ||
                !(value is bool isSet))
            {
                return(_state);
            }

            _state = isSet ? governing : _state;
            return(_state);
        }
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (!(parameter is InspectionResultGrouping governing) ||
                !(value is InspectionResultGrouping bound))
            {
                return(false);
            }

            _state = bound;
            return(_state == governing);
        }