public void calcFindUsagesOptions(FindUsagesOptions options) {
    var noUserSelectedScope = myScopeCombo == null || myScopeCombo.getSelectedScope() == null;
    if (noUserSelectedScope) {
      // This happens when the dialog doesn't even have a scope combo box, e.g., when searching for usages of a private method.
      // In this case, we use the "All" scope, and we don't save it, as it doesn't make any sense.
      options.searchScope = GlobalSearchScope.allScope(myProject);
    }
    else {
      options.searchScope = myScopeCombo.getSelectedScope();
      FindSettings.getInstance().setDefaultScopeName(options.searchScope.getDisplayName());
    }

    options.isSearchForTextOccurrences = isToChange(myCbToSearchForTextOccurrences) && isSelected(myCbToSearchForTextOccurrences);
  }
public void calcFindUsagesOptions(FindUsagesOptions options)