diff options
Diffstat (limited to 'platform/analysis-api/src/com/intellij/codeInspection/InspectionProfileEntry.java')
-rw-r--r-- | platform/analysis-api/src/com/intellij/codeInspection/InspectionProfileEntry.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/analysis-api/src/com/intellij/codeInspection/InspectionProfileEntry.java b/platform/analysis-api/src/com/intellij/codeInspection/InspectionProfileEntry.java index 8d0f1da9d024..43d80faad886 100644 --- a/platform/analysis-api/src/com/intellij/codeInspection/InspectionProfileEntry.java +++ b/platform/analysis-api/src/com/intellij/codeInspection/InspectionProfileEntry.java @@ -119,7 +119,7 @@ public abstract class InspectionProfileEntry implements BatchSuppressableTool{ return alternativeId != null && !alternativeId.equals(toolId) && suppressor.isSuppressedFor(element, alternativeId); } - private static Set<InspectionSuppressor> getSuppressors(@NotNull PsiElement element) { + public static Set<InspectionSuppressor> getSuppressors(@NotNull PsiElement element) { FileViewProvider viewProvider = element.getContainingFile().getViewProvider(); if (viewProvider instanceof TemplateLanguageFileViewProvider) { LinkedHashSet<InspectionSuppressor> suppressors = new LinkedHashSet<InspectionSuppressor>(); @@ -127,6 +127,7 @@ public abstract class InspectionProfileEntry implements BatchSuppressableTool{ for (Language language : viewProvider.getLanguages()) { ContainerUtil.addIfNotNull(suppressors, LanguageInspectionSuppressors.INSTANCE.forLanguage(language)); } + ContainerUtil.addIfNotNull(suppressors, LanguageInspectionSuppressors.INSTANCE.forLanguage(element.getLanguage())); return suppressors; } return Collections.singleton(LanguageInspectionSuppressors.INSTANCE.forLanguage(element.getLanguage())); |