@Override
  public @Nls @NotNull String getLongDescriptiveName() {
    final MatchOptions matchOptions = myConfiguration.getMatchOptions();
    final String pattern = matchOptions.getSearchPattern();
    final SearchScope scope = matchOptions.getScope();
    // a search without scope is not possible, if null here the configuration was modified after the search, which should not happen
    assert scope != null;
    final String scopeString = scope.getDisplayName();
    final String result;
    if (myConfiguration instanceof ReplaceConfiguration replaceConfiguration) {
      final String replacement = replaceConfiguration.getReplaceOptions().getReplacement();
      result = SSRBundle.message("replace.occurrences.of.0.with.1.in.2", pattern, replacement, scopeString);
    }
    else {
      result = SSRBundle.message("occurrences.of.0.in.1", pattern, scopeString);
    }
    return StringUtil.shortenTextWithEllipsis(result, 150, 0, true);
  }
@Override
  public @Nls @NotNull String getLongDescriptiveName()