void (@NotNull List<? extends VcsFullCommitDetails> detailsList) { int maxSize = VcsLogUtil.getMaxSize(detailsList); if (maxSize > VcsLogUtil.getShownChangesLimit()) { String sizeText = VcsLogUtil.getSizeText(maxSize); myChangesBrowser.setEmptyWithText(statusText -> { statusText.setText(VcsLogBundle.message("vcs.log.changes.too.many.status", detailsList.size(), sizeText)); statusText.appendSecondaryText(VcsLogBundle.message("vcs.log.changes.too.many.show.anyway.status.action"), SimpleTextAttributes.LINK_PLAIN_ATTRIBUTES, e -> myChangesBrowser.setSelectedDetails(detailsList)); }); } else { myChangesBrowser.setSelectedDetails(detailsList); } }