The PRE_POOL_CREATE event occurs before the Pool of packages is created, and lets you filter the list of packages which is going to enter the Solver
The event listener method receives a Composer\Plugin\PrePoolCreateEvent instance.
public const PRE_POOL_CREATE = 'pre-pool-create';