The above three methods are duplicated [here](https://github.com/scala-ide/scala-ide-play2/pull/171/files#L0R54). Looks like it's worth extracting them.