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