I think what you really wanted this to be was this:

```scala
lazy val knownStatuses = Play.configuration.getIntList("metrics.knownStatuses") match {
  Some(preference) => preference.asScala
  None => {
    import Status._
    Seq(OK, BAD_REQUEST, FORBIDDEN, NOT_FOUND, 
      CREATED, TEMPORARY_REDIRECT, 
      INTERNAL_SERVER_ERROR)
  }
}