ResolveCache (@NotNull Project project) { ProgressIndicatorProvider.checkCanceled(); // We hope this method is being called often enough to cancel daemon processes smoothly return project.getService(ResolveCache.class); }