boolean (@NotNull TemplateActionContext templateActionContext) { PsiFile file = templateActionContext.getFile(); int startOffset = templateActionContext.getStartOffset(); if (!XmlContextType.isInXml(file, startOffset)) return false; return isInXmlElementContext(templateActionContext); }