private void performEdit(@NotNull JList<Configuration> list) {
    final Project project = CommonDataKeys.PROJECT.getData(DataManager.getInstance().getDataContext(list));
    if (project == null) return;
    final int index = list.getSelectedIndex();
    if (index < 0) return;
    final Configuration configuration = myConfigurations.get(index);
    if (configuration == null) return;
    final SearchContext searchContext = new SearchContext(project);
    final StructuralSearchDialog dialog = new StructuralSearchDialog(searchContext, !(configuration instanceof SearchConfiguration), true);
    dialog.loadConfiguration(configuration);
    if (!dialog.showAndGet()) return;
    final Configuration newConfiguration = dialog.getConfiguration();
    if (configuration.getOrder() == 0) {
      myMainConfiguration = newConfiguration;
    }
    myConfigurations.set(index, newConfiguration);
    ((MyListModel)list.getModel()).fireContentsChanged(list);
    saveChangesToProfile(list);
  }
private void performEdit(@NotNull JList<Configuration> list)