private void doPostModificationJob(@NotNull VirtualFile file, boolean allModificationsSuccessful, @NotNull Supplier<String> debugString) {
    if (allModificationsSuccessful) {
      VfsEventsMerger.tryLog("INDEX_UPDATED", file, debugString);
      myIndex.getFilesToUpdateCollector().removeFileIdFromFilesScheduledForUpdate(fileId);

      if (shouldMarkFileAsIndexed) {
        IndexingFlag.setIndexedIfFileWithSameLock(file, fileStatusLockObject, indexingStamp);
      }
      else if (fileStatusLockObject != IndexingFlag.getNonExistentHash()) {
        IndexingFlag.unlockFile(file);
      }
    }
    else {
      VfsEventsMerger.tryLog("INDEX_PARTIAL_UPDATE", file, debugString);
      if (fileStatusLockObject != IndexingFlag.getNonExistentHash()) {
        IndexingFlag.unlockFile(file);
      }
    }
  }
private void doPostModificationJob(@NotNull VirtualFile file, boolean allModificationsSuccessful, @NotNull Supplier<String> debugString)