Null Checker na Addall Java

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