From b5b8f4d37f327da86acbd5ce63ab11c7bfb886b1 Mon Sep 17 00:00:00 2001 From: Dmitry Batkovich Date: Tue, 6 Feb 2018 16:36:03 +0300 Subject: [PATCH] use current inspection profile to get severity registrar --- .../com/intellij/codeInsight/daemon/impl/SeverityRegistrar.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/analysis-impl/src/com/intellij/codeInsight/daemon/impl/SeverityRegistrar.java b/platform/analysis-impl/src/com/intellij/codeInsight/daemon/impl/SeverityRegistrar.java index 3ad9f43acb12..52311925481d 100644 --- a/platform/analysis-impl/src/com/intellij/codeInsight/daemon/impl/SeverityRegistrar.java +++ b/platform/analysis-impl/src/com/intellij/codeInsight/daemon/impl/SeverityRegistrar.java @@ -69,7 +69,7 @@ public class SeverityRegistrar implements Comparator { public static SeverityRegistrar getSeverityRegistrar(@Nullable Project project) { return project == null ? InspectionProfileManager.getInstance().getSeverityRegistrar() - : InspectionProfileManager.getInstance(project).getSeverityRegistrar(); + : InspectionProfileManager.getInstance(project).getCurrentProfile().getProfileManager().getSeverityRegistrar(); } public void registerSeverity(@NotNull SeverityBasedTextAttributes info, Color renderColor) {