code: void assertNotNull(Object object, String param) {
      if (object == null) {
        throw new IllegalArgumentException(String.format(
            "%s may not be null.", param));
      }
    }
docs: Asserts that the given {@code object} with name {@code param} is not null, throws
  {@link IllegalArgumentException} otherwise.