void (@NotNull AnActionEvent e) { final int number = ShowAnnotateOperationsPopup.getAnnotationLineNumber(e.getDataContext()); e.getPresentation().setVisible(myChangesProvider != null); e.getPresentation().setEnabled(myChangesProvider != null && number >= 0 && number < myFileAnnotation.getLineCount()); }