@Override
  @NotNull
  public XPathType getType() {
    final XPathExpression value = getValue();
    return value != null ? value.getType() : XPathType.UNKNOWN;
  }
@Override
  @NotNull
  public XPathType getType()