collection.add(x)
) could be replaced when calling a bulk method
(e.g. collection.addAll(listOfX)
.
If checkbox "Use Arrays.asList() to wrap arrays" is checked, the inspection will warn even if the original code iterates over
an array while bulk method requires a Collection
. In this case the quick-fix action will automatically
wrap an array with Arrays.asList()
call.