code: public static void validArgument(boolean expression, String message, Object... messageArgs) {
      if (!expression) {
        throw new IllegalArgumentException(format(message, messageArgs));
      }
    }
docs: Checks boolean expression.
  
  @param expression a boolean expression
  @param message error message
  @param messageArgs array of parameters to the message
  @throws IllegalArgumentException if boolean expression is false