int countAll(List<Pluggable?> pluggable) { int result = 0; pluggable.map((e) => e!.name).toSet().forEach((element) { result += (_pluggableMessageData[element]?.count ?? 0); }); return result; }