How to know if an entity is new, in a FieldValueChange listener?

How, in a FieldValueChange listener, can I check if the entity being edited is new or not?

In another support topic, @mario used the EntityStates class, but I can’t seem to use that from a FVC listener (because getBeanLocator is expecting a FrameOwner and event.getSource() in this case doesn’t return one of course).

I’m sure there’s a way; I’m just way too new to CUBA (and Java too, honestly) to find it.

Nevermind; figured it out myself. It was much easier than I assumed: EntityStates is just directly injectable; no need to use the bean locator.