Added Utils.getMaxValue for Collections, refactor old getMaxValue