@Override
    public void stagingAreaChanged(@NotNull GitRepository repository) {
      if (!Registry.is("git.merge.conflicts.toolwindow")) return;

      Project project = repository.getProject();
      ApplicationManager.getApplication().invokeLater(() -> {
        project.getMessageBus().syncPublisher(ChangesViewContentManagerListener.TOPIC).toolWindowMappingChanged();
      }, ModalityState.nonModal(), project.getDisposed());
    }
@Override
    public void stagingAreaChanged(@NotNull GitRepository repository)