@Nullable
    public String getPath(XmlTag tag) {
      if (tag == context) {
        return ".";
      }

      XmlTag parent = tag.getParentTag();

      if (parent == null) {
        return "/" + getXPathNameStep(tag);
      }
      else if (parent == context) {
        return getXPathNameStep(tag);
      }

      return getPath(parent) + "/" + getXPathNameStep(tag);
    }
@Nullable
    public String getPath(XmlTag tag)