diff --git a/platform/lang-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextImpl.java b/platform/lang-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextImpl.java index 03fbfd98b251..607b55e0b4aa 100644 --- a/platform/lang-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextImpl.java +++ b/platform/lang-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextImpl.java @@ -828,11 +828,10 @@ public class GlobalInspectionContextImpl extends GlobalInspectionContextBase imp } } - private final ConcurrentMap myPresentationMap = ContainerUtil.newConcurrentMap(); + private final ConcurrentMap myPresentationMap = ContainerUtil.newConcurrentMap(); @NotNull public InspectionToolPresentation getPresentation(@NotNull InspectionToolWrapper toolWrapper) { - final String shortName = toolWrapper.getShortName(); - InspectionToolPresentation presentation = myPresentationMap.get(shortName); + InspectionToolPresentation presentation = myPresentationMap.get(toolWrapper); if (presentation == null) { String presentationClass = StringUtil.notNullize(toolWrapper.myEP == null ? null : toolWrapper.myEP.presentation, DefaultInspectionToolPresentation.class.getName()); @@ -844,7 +843,7 @@ public class GlobalInspectionContextImpl extends GlobalInspectionContextBase imp LOG.error(e); throw new RuntimeException(e); } - presentation = ConcurrencyUtil.cacheOrGet(myPresentationMap, shortName, presentation); + presentation = ConcurrencyUtil.cacheOrGet(myPresentationMap, toolWrapper, presentation); } return presentation; }