}
for (MeasureKey key : module.getMeasureKeys()) {
SortedMap<Date, ProjectMeasure> measuresByDate = historyByKey.get(key);
if (measuresByDate != null) {
List<Double> values = getValuesWithoutGaps(measuresByDate, from, to);
TendencyAnalyser analyser = new TendencyAnalyser(values, MAX_DAYS);
Number[] slopeAndLevel = getSlopeAndLevel(analyser, key.getMetric());
if (slopeAndLevel[0] != null) {
module.createTendency(((MeasureKey) key.clone()), (Double) slopeAndLevel[0], (Integer) slopeAndLevel[1], MAX_DAYS);
}
}