@Override public StockChartGroup setDataSets(List<DataSet> dataSets) { if (CollectionUtils.isNotEmpty(this.dataSets)) { for (DataSet dataSet : this.dataSets) { dataSet.removeDataProviderChangeListener(this); } } if (CollectionUtils.isNotEmpty(dataSets)) { for (DataSet dataSet : dataSets) { dataSet.addDataProviderChangeListener(this); } } this.dataSets = dataSets; fireDataSetsChanged(dataSets, Operation.SET); return this; }