static boolean isInsideTag(final Editor editor, final PsiFile file, String[] tagNames) {
    if (isHtmlTagContainingFile(editor, file)) {
      final int offset = editor.getCaretModel().getOffset();
      PsiElement element = getParentWithName(file.findElementAt(offset), tagNames);
      return element != null;
    }

    return false;
  }
static boolean isInsideTag(final Editor editor, final PsiFile file, String[] tagNames)