class Utils {

  public static void checkState(boolean isValid, String errorMessage) {
    if (!isValid) {
      throw new IllegalStateException(String.valueOf(errorMessage));
    }
  }

  private  Utils();

}