code: public static void checkNull(Object value, String message, Object... args) {
      if (value != null) {
        throw new IllegalArgumentException(String.format(message, args));
      }
    }
docs: Validates that an argument is null.
  
  @param value The value to check.
  @param message An exception message.
  @param args Exception message arguments.