private void performEditMetaData(@NotNull Component context) {
    final Project project = CommonDataKeys.PROJECT.getData(DataManager.getInstance().getDataContext(context));
    final InspectionProfileModifiableModel profile = getInspectionProfile(context);
    if (profile == null || project == null) {
      return;
    }
    final CustomRegExpInspection inspection = getRegExpInspection(profile);
    final InspectionMetaDataDialog dialog =
      inspection.createMetaDataDialog(project, profile.getDisplayName(), myConfiguration);
    if (isCleanupAllowed()) {
      dialog.showCleanupOption(myConfiguration.isCleanup());
    }
    if (!dialog.showAndGet()) {
      return;
    }
    myConfiguration.setName(dialog.getName());
    myConfiguration.setDescription(dialog.getDescription());
    myConfiguration.setSuppressId(dialog.getSuppressId());
    myConfiguration.setProblemDescriptor(dialog.getProblemDescriptor());
    myConfiguration.setCleanup(dialog.isCleanup());

    inspection.updateConfiguration(myConfiguration);
    profile.setModified(true);
    profile.getProfileManager().fireProfileChanged(profile);
  }
private void performEditMetaData(@NotNull Component context)