local inspections: fix logging

GitOrigin-RevId: 505dce9b2cfe975b731a2a58866e08e4ab64ddd5
This commit is contained in:
Anna Kozlova
2020-05-15 08:33:42 +00:00
committed by intellij-monorepo-bot
parent 72202491fc
commit bfedfdd9cc
@@ -501,7 +501,7 @@ public class LocalInspectionsPass extends ProgressableTextEditorHighlightingPass
if (descriptor instanceof ProblemDescriptorWithReporterName) {
String reportingToolName = ((ProblemDescriptorWithReporterName)descriptor).getReportingToolName();
final InspectionToolWrapper<?, ?> reportingTool = myProfileWrapper.getInspectionTool(reportingToolName, element);
assert reportingTool instanceof LocalInspectionToolWrapper;
LOG.assertTrue(reportingTool instanceof LocalInspectionToolWrapper, reportingToolName);
toolWrapper = (LocalInspectionToolWrapper)reportingTool;
severity = myProfileWrapper.getErrorLevel(HighlightDisplayKey.find(reportingToolName), file).getSeverity();
}