private void performEdit(JList<InspectionPattern> 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 List<InspectionPattern> patterns = myConfiguration.getPatterns();
    final InspectionPattern configuration = patterns.get(index);
    if (configuration == null) return;
    final RegExpDialog dialog = new RegExpDialog(project, true, configuration);
    if (!dialog.showAndGet()) return;
    final InspectionPattern newConfiguration = dialog.getPattern();
    patterns.set(index, newConfiguration);
    ((MyListModel)list.getModel()).fireContentsChanged(list);
    saveChangesToProfile(list);
  }
private void performEdit(JList<InspectionPattern> list)