Only for Scala