code: private void replaceStringsWithAliases() {
      for (Entry<String, StringInfo> entry : stringInfoMap.entrySet()) {
        String literal = entry.getKey();
        StringInfo info = entry.getValue();
        if (shouldReplaceWithAlias(literal, info)) {
          for (StringOccurrence occurrence : info.occurrences) {
            replaceStringWithAliasName(
                occurrence, info.getVariableName(literal), info);
          }
        }
      }
    }
docs: Replace strings with references to alias variables.