code: public static <T> T assertNotNull(T value, String message) {
          if (value == null)
              throw new IllegalStateException(message);
          return value;
      }
docs: Throws an IllegalStateException when the given value is null.
  @return the value