public final List<Segment> getLabels() {
        return Collections.unmodifiableList(
                segments.stream().filter(Segment::isLabel).collect(Collectors.toList()));
    }
Get a list of all segments that are labels.

@return Label segments in an unmodifiable list.
smithy-model/src/main/java/software/amazon/smithy/model/pattern/SmithyPattern.java