@Override
    public void actionPerformed(@NotNull AnActionEvent e) {
      final Project project = e.getData(CommonDataKeys.PROJECT);
      assert project != null;
      final SearchContext context = new SearchContext(project);
      final StructuralSearchDialog dialog = new StructuralSearchDialog(context, myReplace, true);
      if (!dialog.showAndGet()) return;
      final Configuration configuration = dialog.getConfiguration();
      configuration.setUuid(myMainConfiguration.getUuid());
      configuration.setName(myMainConfiguration.getName());
      configuration.setDescription(null);
      configuration.setSuppressId(null);
      configuration.setProblemDescriptor(null);
      final MyListModel model = (MyListModel)myList.getModel();
      final int size = model.getSize();
      configuration.setOrder(size);

      final InspectionProfileModifiableModel profile = InspectionProfileUtil.getInspectionProfile(myList);
      if (profile == null) return;
      if (SSBasedInspection.getStructuralSearchInspection(profile).addConfiguration(configuration)) {
        myConfigurations.add(configuration);
        model.fireContentsChanged(myList);
        myList.setSelectedIndex(size);
        myList.scrollRectToVisible(myList.getCellBounds(size, size));
        profile.setModified(true);
      }
      else {
        final int index = myConfigurations.indexOf(configuration);
        if (index >= 0) {
          myList.setSelectedIndex(index);
        }
      }
    }
@Override
    public void actionPerformed(@NotNull AnActionEvent e)