class Preconditions {

  public static <T> T checkNotNullWithMessage(T reference, String message) {

    if (reference == null) {
      throw new NullPointerException(message);
    }
    return reference;
  }

  @VisibleForTesting  Preconditions();

}