void (FindUsagesOptions options) { options.searchScope = myScopeCombo == null || myScopeCombo.getSelectedScope() == null ? GlobalSearchScope.allScope(myProject) : myScopeCombo.getSelectedScope(); options.isSearchForTextOccurrences = isToChange(myCbToSearchForTextOccurrences) && isSelected(myCbToSearchForTextOccurrences); }