String (XmlText text) { XmlTag parent = PsiTreeUtil.getParentOfType(text, XmlTag.class); return makeUnique(((parent != null) && (parent != context)) ? (getUniquePath(parent) + "/text()") : "text()", text); }