public virtual bool HasSearchInterest(string searchContext)
        {
            if (hasSearchInterestHandler != null)
            {
                return(hasSearchInterestHandler.Invoke(searchContext));
            }

            foreach (var searchKeyword in keywords)
            {
                if (SearchUtils.MatchSearchGroups(searchContext, searchKeyword))
                {
                    return(true);
                }
            }
            return(false);
        }
 private static bool PassesFilter(DiagnosticSwitch diagnosticSwitch, string filterString)
 {
     return(string.IsNullOrEmpty(filterString) ||
            SearchUtils.MatchSearchGroups(filterString, diagnosticSwitch.name));
 }