Style nitpick: replace parens with curly braces and remove inner curly braces:

```scala
filter.getChildren.map { child =>
...
}
```