docs: boolean isPrefixOf(BasePath<B> path) {
      ImmutableList<String> prefixSegments = getSegments();
      ImmutableList<String> childSegments = path.getSegments();
      if (prefixSegments.size() > path.getSegments().size()) {
        return false;
      }
      for (int i = 0; i < prefixSegments.size(); i++) {
        if (!prefixSegments.get(i).equals(childSegments.get(i))) {
          return false;
        }
      }
      return true;
    }