IntelliJ IDEA 2020.2.3 (Ultimate Edition)
SomarLint 4.13.0.24781
ClientBilanceStatisticTO get(final CalendarInterval month, final Integer superSportId, final Integer competitionId, ProjectionType projection) {
return StopWatch.callSafeStartStop(SW_CALC, () -> {
ClientStatisticsInterval stat = stats.get(month);
ClientBilanceStatisticTO ret = new ClientBilanceStatisticTO(projection, superSportId, competitionId);
if (stat == null) {
return ret;
}
TIntSet competitionIds = superSportId != null ? superSport2CompetitionsCache.getUnchecked(superSportId) : null;
switch (projection) {
case SUPER_SPORTS:
case COMPETITIONS:
case EVENT_TYPES:
for (ClientBalanceStatisticsData<ClientStatisticsKeyEventType> amount : stat.eventTypes) {
ClientStatisticsKeyEventType key = amount.getId();