boolean (@NotNull PsiFile file, int offset) { Language language = PsiUtilCore.getLanguageAtOffset(file, offset); if (!HtmlContextType.isMyLanguage(language)) { return false; } PsiElement element = file.getViewProvider().findElementAt(offset, language); return element == null || isInContext(element); }