private boolean canSerialize(NodeMapper mapper, Node value) {
            if (!mapper.getSerializeNullValues() && value.isNullNode()) {
                return false;
            }

            if (mapper.getOmitEmptyValues()) {
                if (value.isObjectNode() && value.expectObjectNode().isEmpty()) {
                    return false;
                } else if (value.isArrayNode() && value.expectArrayNode().isEmpty()) {
                    return false;
                } else if (value.isBooleanNode() && !value.expectBooleanNode().getValue()) {
                    return false;
                }
            }

            return true;
        }
Contains the getters of a class that are eligible to convert to a Node.

<p>Getters are public methods that take zero arguments and start with
"get" or "is". Getters that are associated with properties marked as
{@code transient} are not serialized.
smithy-model/src/main/java/software/amazon/smithy/model/node/DefaultNodeSerializers.java