boolean (ASTNode element) { PsiElement psi = element.getPsi(); if (psi == null || !psi.isValid()) return false; PsiFile file = psi.getContainingFile(); Language baseLanguage = file.getViewProvider().getBaseLanguage(); return baseLanguage instanceof JspxLanguage && file.getLanguage() != baseLanguage; }