void (@NotNull Project project, @NotNull InspectionProfileImpl profile, @NotNull RegExpInspectionConfiguration configuration) { final String shortName = configuration.getUuid(); final InspectionToolWrapper<?, ?> toolWrapper = profile.getInspectionTool(shortName, project); if (toolWrapper != null) { // already added return; } final CustomRegExpInspectionToolWrapper wrapped = new CustomRegExpInspectionToolWrapper(configuration); profile.addTool(project, wrapped, null); profile.setToolEnabled(shortName, true); }