private void populateLocalAnaesthetic(LocalAnaestheticCollection localAnaesthetic, DynamicGridCell cell) { if (localAnaesthetic == null || localAnaesthetic.size() == 0 || cell == null) return; LocalAnaesthetic cellValue = (LocalAnaesthetic) cell.getValue(); cell.getItems().clear(); for (int i = 0; i < localAnaesthetic.size(); i++) { if (!alreadyAdded(localAnaesthetic.get(i), cell)) { cell.getItems().newItem(localAnaesthetic.get(i)); } } cell.setValue(cellValue); }