Null Checker на addall java

Optional.ofNullable(listToBeAdded).ifPresent(listToBeAddedTo::addAll)
Talented Tarantula