// "Replace iteration with bulk 'Collection.addAll()' call" "true-preview" import java.util.ArrayList; import java.util.List; public class Main { public void test(Integer[] arr) { List result = new ArrayList<>(); result.add(1); for (int idx = 0; idx < arr.length; idx++) { result.add(arr[idx]); } } }