@Override
  protected void configureActions() {
    super.configureActions();
    myUsageView.addButtonToLowerPane(() -> replace(myUsageView.getSortedUsages()), SSRBundle.message("do.replace.all.button"));
    myUsageView.addButtonToLowerPane(() -> replace(myUsageView.getSelectedUsages()), SSRBundle.message("replace.selected.button"));

    final Runnable previewReplacement = () -> {
      final Set<Usage> selection = myUsageView.getSelectedUsages();
      if (selection.isEmpty()) {
        return;
      }
      for (Usage usage : selection) {
        final UsageInfo2UsageAdapter info = (UsageInfo2UsageAdapter)usage;
        if (!isValid(info) || myUsageView.getExcludedUsages().contains(usage)) {
          continue;
        }
        final ReplacementInfo replacementInfo = usage2ReplacementInfo.get(usage);
        final ReplacementPreviewDialog previewDialog =
          new ReplacementPreviewDialog(mySearchContext.getProject(), info.getUsageInfo(), replacementInfo.getReplacement());
        if (!previewDialog.showAndGet()) {
          return;
        }
        replace(Collections.singleton(info));
      }
    };
    myUsageView.addButtonToLowerPane(previewReplacement, SSRBundle.message("preview.replacement.button"));
  }
@Override
  protected void configureActions()