NULL Checker auf Addall Java

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