ArrayBuffer is both a mutable and concrete class. Can't you convert it to a Seq (trait and immutable)?

I don't see a need for a mutable collection in that method, and it's better to code against traits than concrete classes where possible, same as in Java really, you never pass an ArrayList, don't u? :)