```java
if (event.isCancelled()) {
```