Workaround for the red code example in our sources (looks like it's compiler issue: https://issues.scala-lang.org/browse/SI-8338).