class Preconditions {

  public static void checkState(final boolean expression, @NonNull final String errorMessage) {
    if (!expression) {
      throw new IllegalStateException(errorMessage);
    }
  }

  private  Preconditions();

}