docs: @Nullable
    private static String getLocalVarTranslation(String ident, SoyToJsVariableMappings mappings) {
      Expression translation = mappings.maybeGet(ident);
      if (translation == null) {
        return null;
      }
      JsExpr asExpr = translation.assertExpr();
      return asExpr.getPrecedence() != Integer.MAX_VALUE
          ? "(" + asExpr.getText() + ")"
          : asExpr.getText();
    }