public <T extends Trait> Optional<T> getMemberTrait(Model model, Class<T> trait) {
        return getTrait(trait);
    }
Gets a trait from the member shape or from the shape targeted by the
member.

<p>If the shape is not a member, then the method functions the same as
{@link #getTrait(Class)}.

@param model Model used to find member targets.
@param trait Trait type to get.
@param <T> Trait type to get.
@return Returns the optionally found trait on the shape or member.
@see MemberShape#getTrait(Class)
smithy-model/src/main/java/software/amazon/smithy/model/shapes/Shape.java