rename(str) {
    return str.replace(dottedIdentifier, (match) => {
      for (const versionRenamer of this.versionRenamers_) {
        match = versionRenamer.rename(match);
      }
      return match;
    });
  }
Applies the given renamings directly to a JavaScript string
(presumably the contents of a developer's file).
@param {string} str The string to apply the renamings in.
@returns {string} The string with renamings applied.