Converts a Java collection to the corresponding Scala collection by using scala.jdk.CollectionConverters.