final List<Integer> result = cars.stream()
    .filter(Car::isDiesel)
    .map(Card::getMpg)
    .collect(Collectors.toList());