boolean (PsiElement element) { final PsiFile containingFile = element.getContainingFile(); if (containingFile.getLanguage() == HTMLLanguage.INSTANCE || containingFile.getLanguage() == XHTMLLanguage.INSTANCE || containingFile instanceof HtmlCompatibleFile || containingFile.getViewProvider() instanceof TemplateLanguageFileViewProvider ) { return false; } return true; }