void () { VisiblePack visiblePack = getModel().getVisiblePack(); if (visiblePack instanceof VisiblePack.ErrorVisiblePack) { setErrorEmptyText(((VisiblePack.ErrorVisiblePack)visiblePack).getError(), VcsLogBundle.message("file.history.error.status")); appendActionToEmptyText(VcsLogBundle.message("vcs.log.refresh.status.action"), () -> logUi.getRefresher().onRefresh()); } else { getEmptyText().setText(VcsLogBundle.message("file.history.empty.status")); } }