void (@NotNull AnActionEvent e) { e.getPresentation().setEnabledAndVisible(!new GitMultiRootBranchConfig(myRepositories).diverged()); String description = GitBundle.message("branches.compare.the.current.working.tree.with", getSelectedBranchFullPresentation(myBranchName)); e.getPresentation().setDescription(description); disableActionIfAnyRepositoryIsFresh(e, myRepositories, GitBundle.message("action.not.possible.in.fresh.repo.show.diff")); }