public static boolean isInXmlElementContext(@NotNull TemplateActionContext templateActionContext) {
    int startOffset = templateActionContext.getStartOffset();
    int endOffset = templateActionContext.getEndOffset();
    PsiElement parent = findCommonParent(templateActionContext);
    if (!(parent instanceof XmlTag)) return false;
    TextRange range = parent.getTextRange();
    return range.getStartOffset() >= startOffset && range.getEndOffset() <= endOffset;
  }
public static boolean isInXmlElementContext(@NotNull TemplateActionContext templateActionContext)