void registerProject(@NotNull Project project, @NotNull Collection<Integer> projectDirtyFileIdsFromLastSession) {
    getChangedFilesCollector().getDirtyFiles().addProject(project);
    myFilesToUpdateCollector.getDirtyFiles().addProject(project);
    myLastSeenIndexesInOrphanQueue.put(project, new Ref<>(null));
    // don't lose these ids if the project is closed before indexes are removed
    myDirtyFiles.addProject(project).addFiles(projectDirtyFileIdsFromLastSession);
  }
void registerProject(@NotNull Project project, @NotNull Collection<Integer> projectDirtyFileIdsFromLastSession)