private void saveConfiguration() {
    final MatchOptions matchOptions = myConfiguration.getMatchOptions();

    if (myScopePanel.isVisible()) {
      final SearchScope scope = myScopePanel.getScope();
      final boolean searchWithinHierarchy = IdeBundle.message("scope.class.hierarchy").equals(scope.getDisplayName());
      // We need to reset search within hierarchy scope during online validation since the scope works with user participation
      matchOptions.setScope(searchWithinHierarchy && !myPerformAction ? GlobalSearchScope.projectScope(myProject) : scope);
    }
    else {
      matchOptions.setScope(null);
    }
    matchOptions.setSearchPattern(getPattern(mySearchCriteriaEdit));
    matchOptions.setRecursiveSearch(!myReplace);

    final ReplaceOptions replaceOptions = myConfiguration.getReplaceOptions();
    replaceOptions.setReplacement(getPattern(myReplaceCriteriaEdit));
  }
private void saveConfiguration()