code: public static <T> T checkNonNull(T t, Supplier<String> msg) {
          if (t == null)
              error(msg.get());
          return t;
      }
docs: Equivalent to
  assert (o != null) : msg.get();
  Note: message string is computed lazily.