public static Optional<Severity> fromString(String text) {
        return Arrays.stream(values()).filter(value -> value.toString().equals(text)).findFirst();
    }
Create a new Severity from a string.

@param text Text to convert into a severity level.
@return Returns the format in an Optional.
smithy-model/src/main/java/software/amazon/smithy/model/validation/Severity.java