void (@NotNull Project project, @NotNull Language fileLanguage, String @NotNull... except) { InspectionProfileImpl.INIT_INSPECTIONS = true; InspectionProfileImpl profile = new InspectionProfileImpl("allEnabled"); profile.enableAllTools(project); disableInspection(project, profile, "HighlightVisitorInternal"); for (String shortId : except) { disableInspection(project, profile, shortId); } replaceProfile(project, profile, fileLanguage); }