void (@NotNull AnActionEvent e) { super.update(e); if (!e.getPresentation().isEnabled()) return; if (!Registry.is("vcs.history.use.index")) { e.getPresentation().setEnabled(false); e.getPresentation().putClientProperty(ActionButton.CUSTOM_HELP_TOOLTIP, null); return; } Project project = e.getProject(); VcsLogManager logManager = e.getData(VcsLogInternalDataKeys.LOG_MANAGER); VcsLogUi logUi = e.getData(VcsLogDataKeys.VCS_LOG_UI); Set<VirtualFile> roots = e.getData(VcsLogInternalDataKeys.VCS_LOG_VISIBLE_ROOTS); if (project != null && logManager != null && logUi != null && roots != null && roots.size() == 1) { VcsLogIndex index = logManager.getDataManager().getIndex(); VirtualFile root = ContainerUtil.getOnlyItem(roots); if (!index.isIndexed(root)) { e.getPresentation().setEnabled(false); } HelpTooltip helpTooltip = getHelpTooltip(e.getPresentation(), logManager.getDataManager(), root); e.getPresentation().putClientProperty(ActionButton.CUSTOM_HELP_TOOLTIP, helpTooltip); } else { e.getPresentation().putClientProperty(ActionButton.CUSTOM_HELP_TOOLTIP, null); } }