use current inspection profile to get severity registrar

This commit is contained in:
Dmitry Batkovich
2018-04-12 15:14:22 +03:00
parent 694a391792
commit b5b8f4d37f
@@ -69,7 +69,7 @@ public class SeverityRegistrar implements Comparator<HighlightSeverity> {
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) {