Personally, I would do
```scala
notification.getCause match {
```

But it's still a question of personal taste