if (o instanceof List) {
List list = (List) o;
for (Object elem : list) {
if (elem instanceof ContainerNotifier &&
c instanceof ContainerListener) {
ContainerNotifier crf = (ContainerNotifier) elem;
crf.addListener((ContainerListener) c);
}
}
} else if (o instanceof ContainerNotifier &&
c instanceof ContainerListener) {
ContainerNotifier crf = (ContainerNotifier) o;
crf.addListener((ContainerListener) c);
}
return c;
}
}