@Override
        public Void documentShape(DocumentShape shape) {
            writer.openBlock("public $T getValue() {",
                    "}",
                    Node.class,
                    () -> writer.writeWithNoFormatting("return toNode();"));
            writer.newLine();
            return null;
        }
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