docs: public static boolean compareNullableString(@Nullable String string, SoyValue other) {
      // This is a parallel version of SharedRuntime.compareString except it can handle a null LHS.
  
      // This follows similarly to the Javascript specification, to ensure similar operation
      // over Javascript and Java: http://www.ecma-international.org/ecma-262/5.1/#sec-11.9.3
      if (other instanceof StringData || other instanceof SanitizedContent) {
        return Objects.equals(string, other.toString());
      }
      if (other instanceof NumberData) {
        if (string == null) {
          return false;
        }
  
        try {
          // Parse the string as a number.
          return Double.parseDouble(string) == other.numberValue();
        } catch (NumberFormatException nfe) {
          // Didn't parse as a number.
          return false;
        }
      }
      return false;
    }