code: public static void state(Boolean valid, String message, Object... arguments) {
      state(valid, new IllegalStateException(format(message, arguments)));
    }
docs: Asserts that the state is valid.
  
  The assertion holds if and only if valid is {@literal true}.
  
  @param valid {@link Boolean} value indicating whether the state is valid.
  @param message {@link String} containing the message used in the {@link IllegalStateException} thrown
  if the assertion fails.
  @param arguments array of {@link Object arguments} used as placeholder values
  when formatting the {@link String message}.
  @throws java.lang.IllegalStateException if the state is invalid.
  @see #state(Boolean, RuntimeException)