code: public static <T> T checkNotNull(T value) throws NullPointerException {
      if (value == null) {
        throw new NullPointerException();
      }
      return value;
    }
docs: Checks that {@code value} cannot be null.