class AnalyticsUtils {

    public static boolean isPeriodInPeriods( String period, List<DimensionalItemObject> periods )
    {
        return periods.stream().map( d -> (Period) d ).map( Period::getIsoDate )
            .anyMatch( date -> date.equals( period ) );
    }

}