void (@NotNull AnActionEvent e) { super.update(e); Presentation presentation = e.getPresentation(); presentation.setText(ActionsBundle.message("action.Compare.SameVersion.text")); Project project = e.getProject(); if (project != null) { AbstractVcs vcs = ProjectLevelVcsManager.getInstance(project).getSingleVCS(); if (vcs != null) { String customDiffName = vcs.getCompareWithTheSameVersionActionName(); if (customDiffName != null) { presentation.setText(customDiffName); } } } }