public static boolean isHtmlTagContainingFile(final Editor editor, final PsiFile file) {
    if (editor == null || !(file instanceof XmlFile)) {
      return false;
    }
    final int offset = editor.getCaretModel().getOffset();
    final PsiElement element = file.findElementAt(offset);
    return HtmlUtil.isHtmlTagContainingFile(element);
  }
public static boolean isHtmlTagContainingFile(final Editor editor, final PsiFile file)