How about using https://issues.scala-lang.org/browse/SI-4330?filter=12418 ?