Should be something like:

```
bool appliesTo(list) {
  if (list.length != 1 || list.first is! ws.Resource) return false;
  ws.Resource resource = list.first;
  return resource.isFile && _isScmProject(resource.project);
}
```