code: static void checkNotNull(Object o, String arg) {
      if (o == null) {
        throw new IllegalArgumentException(String.format("'%s' must not be null.", arg));
      }
    }
docs: Throws IllegalArgumentException if the given object is null.