Non-nullable version of entities.
List<T> get entitiesNotNull => entities?.where((e) => e != null).whereType<T>().toList() ?? <T>[];