boolean (@NotNull DataContext context) { Project project = context.getData(CommonDataKeys.PROJECT); if (project == null) return false; AbstractVcs[] vcss = ProjectLevelVcsManager.getInstance(project).getAllActiveVcss(); return ContainerUtil.exists(vcss, SelectAndCompareWithSelectedRevisionAction::canShowDiffForVcs); }