public void onSourceChanged(DefDescriptor<?> source, SourceMonitorEvent event, String filePath) {
if (descriptors.remove(source)) {
latch.countDown();
}
if (descriptors.isEmpty()) {
definitionService.unsubscribeToChangeNotification(this);
}
}
};
definitionService.subscribeToChangeNotification(listener);
for (DefDescriptor<?> desc : cached) {