List<Package> get targets => packages .where( (package) => targetNames.contains(package.name), ) .toList();