refactor: Fixed a warning for events concerning `@EqualsAndHashCode`