private static String convertWord(String name, String result, ReservedWords reservedWords) {
            if (!reservedWords.isReserved(result)) {
                return result;
            }

            String newResult = reservedWords.escape(result);
            LOGGER.warning(() -> String.format(
                    "Reserved word: %s is a reserved word for a %s. Converting to %s",
                    result,
                    name,
                    newResult));
            return newResult;
        }
Escapes the given member name if needed.

@param memberName Member name to escape.
@return Returns the possibly escaped member name.
smithy-codegen-core/src/main/java/software/amazon/smithy/codegen/core/ReservedWordSymbolProvider.java