Rewrite java sources to scala.