boolean (Project project) { if (!Registry.is("git.merge.conflicts.toolwindow")) return false; return ContainerUtil.exists(GitRepositoryManager.getInstance(project).getRepositories(), repo -> repo.getStagingAreaHolder().hasConflicts()); }