Combine into `return String.valueOf(checkNotNull(price, "price").getId());`?