private Optional<ValidationEvent> validateShape(Shape shape) {
            String name = shape.asMemberShape()
                    .map(MemberShape::getMemberName)
                    .orElseGet(() -> shape.getId().getName());

            return isReservedWord(name) ? Optional.of(emit(shape, name, reason)) : Optional.empty();
        }
Sets the reason for why the words are reserved.

@param reason Reason to set.
smithy-linters/src/main/java/software/amazon/smithy/linters/ReservedWordsValidator.java