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