private static boolean isEnabled(@NotNull AnActionEvent e) {
    if (e.getData(ChangesBrowserBase.DATA_KEY) != null) {
      Change[] changes = e.getData(VcsDataKeys.CHANGES);
      return changes != null && changes.length > 0;
    }
    VcsLogCommitSelection selection = e.getData(VcsLogDataKeys.VCS_LOG_COMMIT_SELECTION);
    return selection != null && VcsLogCommitSelectionUtils.isNotEmpty(selection);
  }
private static boolean isEnabled(@NotNull AnActionEvent e)