private static String toPathString(List<PathSegment> segments, PathMappingType type) {
            final PathSegment lastSegment = segments.get(segments.size() - 1);
            if (lastSegment instanceof VerbPathSegment) {
                final String basePath = concatWithSlash(segments.subList(0, segments.size() - 1), type);
                return basePath + ':' + lastSegment.segmentString(type);
            } else {
                return concatWithSlash(segments, type);
            }
        }
Returns whether the specified {@link PathMappingType} is supported by
this {@link PathSegment}.
grpc/src/main/java/com/linecorp/armeria/server/grpc/HttpJsonTranscodingPathParser.java