public final Optional<Segment> getGreedyLabel() {
        return segments.stream().filter(Segment::isGreedyLabel).findFirst();
    }
Gets the greedy label of the pattern, if present.

@return Returns the optionally found segment that is a greedy label.
smithy-model/src/main/java/software/amazon/smithy/model/pattern/SmithyPattern.java