};
((Notifier) root).eAdapters().add(adapter);
} else if (root instanceof IChangeNotifier) {
((IChangeNotifier) root).addListener(new INotifyChangedListener() {
@Override
public void notifyChanged(Notification notification) {
elements.setAll((Collection<? extends T>) provider.getElements(root));
}