Demonstrating what the commenter said:
scala> import collection.JavaConverters._
import collection.JavaConverters._
scala> val js = (1 to 10).toSet.asJava
js: java.util.Set[Int] = [5, 10, 1, 6, 9, 2, 7, 3, 8, 4]
scala> def f(is: collection.mutable.Set[Int]) = is.size
f: (is: scala.collection.mutable.Set[Int])Int
scala> def g(js: java.util.Set[Int]) = f(js.asScala)
g: (js: java.util.Set[Int])Int
scala> g(js)
res0: Int = 10
3
solved Using `Set` Argument to Scala Code in Java