ProgressIndicatorProvider.checkCanceled(); // We hope this method is being called often enough to cancel daemon processes smoothly
return ServiceManager.getService(project, HaxeClassResolveCache.class);
}
public HaxeClassResolveCache(@NotNull MessageBus messageBus) {
messageBus.connect().subscribe(PsiManagerImpl.ANY_PSI_CHANGE_TOPIC, new AnyPsiChangeListener() {
@Override
public void beforePsiChanged(boolean isPhysical) {
myMap.clear();
}