AccessToken (@NotNull Project project, @Nullable @Nls String activityName) { BackgroundTaskUtil.syncPublisher(BatchFileChangeListener.TOPIC).batchChangeStarted(project, activityName); return new AccessToken() { @Override public void finish() { BackgroundTaskUtil.syncPublisher(BatchFileChangeListener.TOPIC).batchChangeCompleted(project); } }; }