code: public static void checkState(
          final boolean expression,
          final Eid eid,
          final String messageFormat,
          final Object... parameters
      ) {
          if (!expression) {
              throw new EidIllegalStateException(
                  ensureEid(eid).message(messageFormat, parameters)
              );
          }
      }
docs: Ensures the truth of an expression involving the state of the calling
  instance, but not involving any parameters to the calling method.
  
  @param expression    a boolean expression
  @param eid           the exception message to use if the check fails;
  will be converted to a string using
  {@link String#valueOf(Object)}
  @param messageFormat message format in form accepted by
  {@link MessageFormat#format(String, Object...)}
  @param parameters    parameters fo message format in accepted by
  {@link MessageFormat#format(String, Object...)}
  @throws EidIllegalStateException if {@code expression} is false