[java] How to pass an ArrayList to a varargs method parameter?