boolean (@NotNull final PsiErrorElement element) { final PsiFile containingFile = element.getContainingFile(); if (containingFile.getLanguage() == HTMLLanguage.INSTANCE && containingFile.getContext() != null) { return false; } return true; }