private void updateDetailsPanel(@NotNull List<? extends CommitNode> commitNodes) {
    if (commitNodes.size() == 1 && getSelectedTreeNodes().stream().noneMatch(it -> it instanceof RepositoryNode)) {
      VcsFullCommitDetails commitDetails = commitNodes.get(0).getUserObject();
      CommitPresentationUtil.CommitPresentation presentation =
        CommitPresentationUtil.buildPresentation(myProject, commitDetails, new HashSet<>());
      myDetailsPanel.setCommit(presentation);
      myShowDetailsAction.setEnabled(true);
    }
    else {
      myShowDetailsAction.setEnabled(false);
    }
  }
private void updateDetailsPanel(@NotNull List<? extends CommitNode> commitNodes)