void (@NotNull AnActionEvent e) { int lineNumber = ShowAnnotateOperationsPopup.getAnnotationLineNumber(e.getDataContext()); final boolean enabled = lineNumber >= 0 && myAnnotation.getLineRevisionNumber(lineNumber) != null; e.getPresentation().setEnabledAndVisible(enabled); }