void (boolean newState, @NotNull InspectionProfileImpl profile, @NotNull String shortName, boolean fireEvents, @NotNull Project project) { profile.setToolEnabled(shortName, newState, project, fireEvents); for (ScopeToolState scopeToolState : profile.getTools(shortName, project).getTools()) { scopeToolState.setEnabled(newState); } }