Converts a Scala Buffer to a Java List, see scala.jdk.javaapi.CollectionConverters.asJava.
Buffer
List
scala.jdk.javaapi.CollectionConverters.asJava