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