@Override
    @NotNull
    public XPathType getType() {
        return CachedValuesManager.getCachedValue(this, () ->
          CachedValueProvider.Result.create(calcType(), PsiModificationTracker.MODIFICATION_COUNT));
    }
@Override
    @NotNull
    public XPathType getType()