public static ParameterType fromShapeType(ShapeType type) {
        if (type == ShapeType.STRING) {
            return STRING;
        }
        if (type == ShapeType.BOOLEAN) {
            return BOOLEAN;
        }
        throw new RuntimeException(
                String.format("Unexpected parameter type `%s`. Expected string or boolean.", type));
    }
Creates a {@link ParameterType} of a specific type from the given ShapeType.

@param type the ShapeType to create from.
@return the created ParameterType.
@throws RuntimeException when the value would not create a valid ParameterType.
smithy-rules-engine/src/main/java/software/amazon/smithy/rulesengine/language/syntax/parameters/ParameterType.java