Reimplement inspection suppressions for JavaScript and CoffeeScript

This commit is contained in:
Alexander Zolotov
2014-08-17 20:28:51 +04:00
parent 8aec25d0d4
commit 91aec5d024
@@ -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>();