public final Optional<Segment> getLabel(String name) {
        String searchKey = name.toLowerCase(Locale.US);
        return segments.stream()
                .filter(Segment::isLabel)
                .filter(label -> label.getContent().toLowerCase(Locale.US).equals(searchKey))
                .findFirst();
    }
Get a label by case-insensitive name.

@param name Name of the label to retrieve.
@return An optionally found label.
smithy-model/src/main/java/software/amazon/smithy/model/pattern/SmithyPattern.java