@Override
    public <T extends Trait> Optional<T> getMemberTrait(Model model, Class<T> trait) {
        return OptionalUtils.or(
                getTrait(trait),
                () -> model.getShape(getTarget()).flatMap(targetedShape -> targetedShape.getTrait(trait)));
    }
@return Returns true if the member has a default not set to null.
smithy-model/src/main/java/software/amazon/smithy/model/shapes/MemberShape.java