boolean (@NotNull AnActionEvent e) { VirtualFile file = e.getRequiredData(CommonDataKeys.VIRTUAL_FILE); Editor editor = VcsAnnotateUtil.getEditorFor(file, e.getDataContext()); return editor != null && AnnotateToggleAction.hasVcsAnnotations(editor); }