private void generateValuesGetter(Shape shape) {
            writer.pushState(new GetterSection(shape));
            writer.openBlock("public $B getValues() {",
                    "}",
                    symbolProvider.toSymbol(shape),
                    () -> writer.write("return values;"));
            writer.popState();
            writer.newLine();
        }
Generates getter methods for each shape member or the value type held by the trait.

<p>Optional member getters will return the member type wrapped in an {@code Optional<T>}.
smithy-trait-codegen/src/main/java/software/amazon/smithy/traitcodegen/generators/GetterGenerator.java