void (@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, 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); }