code: public static String safeToString(Object value) {
      try {
        // TODO(b/36844237): Re-evaluate if this is the best place for null handling (null is also
        // handled for arguments via visitNull() and this is only for literal arguments).
        return value != null ? toString(value) : "null";
      } catch (RuntimeException e) {
        return getErrorString(value, e);
      }
    }
docs: TODO: Move to utility class so users don't need to depend on the rest of this class.