String (PsiElement text, String displayText) { if (text instanceof XmlText) { XmlTag tag = ((XmlText)text).getParentTag(); if (tag != null) { return "<" + tag.getName() + " " + StringUtil.join(ContainerUtil.map(tag.getAttributes(), PsiElement::getText), " ") + ">" + displayText + "</" + tag.getName() + ">"; } } return super.buildTagForText(text, displayText); }