docs: public static String objectId(Object object) {
          if (object == null) {
              return "?";
          }
          if (object instanceof IdInfoProvider) {
              return getId(((IdInfoProvider) object).idScope(),
                  ((IdInfoProvider) object).idObject());
          } else {
              return getId(object.getClass(), object);
          }
      }