boolean (final @NotNull PsiFile file, final int offset) { Language languageAtOffset = PsiUtilCore.getLanguageAtOffset(file, offset); return !(languageAtOffset.isKindOf(XMLLanguage.INSTANCE) || languageAtOffset instanceof XMLLanguage); }