void (@NotNull Project project) { final InspectionProfileImpl profile = InspectionProfileManager.getInstance(project).getCurrentProfile(); final InspectionToolWrapper tool = profile.getInspectionTool(getCompatibilityInspectionShortName(), project); if (tool != null) { profile.setToolEnabled(tool.getShortName(), true); EditInspectionToolsSettingsAction.editToolSettings(project, profile, getCompatibilityInspectionShortName()); } }