More concisely:

```scala
 find {
  case DocDef(...) =>
  case _ =>
```