code: public static void checkNotNull(@Nullable Object object, @NonNull String message) {
          if (object == null) {
              throw new NullPointerException(message);
          }
      }
docs: Checks that passed reference is not null,
  throws {@link NullPointerException} with passed message if reference is null
  
  @param object  to check
  @param message exception message if object is null