public static void checkState(
      boolean expression, String errorMessageTemplate, Object... errorMessageArgs) {
    if (!expression) {
      throw new IllegalStateException(format(errorMessageTemplate, errorMessageArgs));
    }
  }
Copy of {@code com.google.common.base.Preconditions#checkState}.
core/src/main/java/feign/Util.java