i just tried:

```scala
settings.importDirectories.collectFirst {
  case folder if new File(folder, filename).exists => new File(folder, filename)
}
```

but it's longer and violates DRY so i'm leaving this one alone. any other ideas?