diff --git a/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionNodeInfo.java b/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionNodeInfo.java index a41af148ea81..838d30aed099 100644 --- a/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionNodeInfo.java +++ b/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionNodeInfo.java @@ -92,11 +92,12 @@ public class InspectionNodeInfo extends JPanel { @Override public boolean onClick(@NotNull MouseEvent event, int clickCount) { DisableInspectionToolAction.modifyAndCommitProjectProfile(model -> { + final String toolId = key.toString(); if (enabled) { - model.disableTool(key.getID(), project); + model.disableTool(toolId, project); } else { - ((InspectionProfileImpl)model).enableTool(key.getID(), project); + ((InspectionProfileImpl)model).enableTool(toolId, project); } }, project); return true;