docs: @Nullable
    B getParent() {
      ImmutableList<String> parts = getSegments();
      if (parts.isEmpty()) {
        return null;
      }
      return createPathWithSegments(parts.subList(0, parts.size() - 1));
    }