void (@NotNull AnActionEvent e) { super.update(e); VcsLogData data = e.getData(VcsLogInternalDataKeys.LOG_DATA); VcsLogUi logUi = e.getData(VcsLogDataKeys.VCS_LOG_UI); if (data == null || logUi == null) { e.getPresentation().setEnabledAndVisible(false); return; } Map<VirtualFile, VcsLogProvider> providers = data.getLogProviders(); if (!isCommitDateSupported(providers.values())) { e.getPresentation().setEnabledAndVisible(false); return; } Set<VirtualFile> visibleRoots = e.getData(VcsLogInternalDataKeys.VCS_LOG_VISIBLE_ROOTS); if (visibleRoots == null) { e.getPresentation().setEnabledAndVisible(false); return; } Set<VcsLogProvider> visibleProviders = ContainerUtil.map2SetNotNull(visibleRoots, root -> providers.get(root)); if (!isDateDisplayed(e.getData(VcsLogInternalDataKeys.LOG_UI_PROPERTIES)) || !isCommitDateSupported(visibleProviders)) { e.getPresentation().setEnabled(false); } }