@NotNull
  @Override
  public XPathType getType() {
    final XPath2TypeElement node = findChildByClass(XPath2TypeElement.class);
    return node != null ? node.getDeclaredType() : XPathType.UNKNOWN;
  }
@NotNull
  @Override
  public XPathType getType()