In models with heterogeneous firms (for example, Melitz, Chaney