class $Gson$Preconditions {
  private $Gson$Preconditions() {
    throw new UnsupportedOperationException();
  }

  /**
   * @deprecated This is an internal Gson method. Use {@link Objects#requireNonNull(Object)}
   *     instead.
   */
  // Only deprecated for now because external projects might be using this by accident
  @Deprecated
  public static <T> T checkNotNull(T obj) {<FILL_FUNCTION_BODY>}

  public static void checkArgument(boolean condition) {
    if (!condition) {
      throw new IllegalArgumentException();
    }
  }
}

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