code: public static void condition(boolean condition, String message, Object... format) {
          if (!condition) {
              throw new IllegalArgumentException(String.format(message, format));
          }
      }
docs: Asserts that the given condition holds <code>true</code>.
  
  @param condition The condition to check.
  @param message String for the exception message.
  @param format Formatting parameters for the exception message.
  @throws IllegalArgumentException If {@code condition} is
  <code>false</code>.