@Override
  public @NotNull List<AnAction> getTextAnnotationPopupActions(int logicalLine) {
    List<AnAction> addActions = new ArrayList<>();
    if (myCanCloseAnnotations) addActions.add(new CloseAnnotationsAction());
    //if (line >= myEditor.getDocument().getLineCount()) return;

    for (TextAnnotationGutterProviderInfo info : myTextAnnotationGutterProviders) {
      List<AnAction> list = info.provider().getPopupActions(logicalLine, myEditor);
      if (list != null) {
        for (AnAction action : list) {
          if (!addActions.contains(action)) {
            addActions.add(action);
          }
        }
      }
    }
    return addActions;
  }
@Override
  public @NotNull List<AnAction> getTextAnnotationPopupActions(int logicalLine)