Also here you could use [collect](https://github.com/scala-ide/scala-search/pull/68/files#r5551944)