@Override
  public void closeTextAnnotations(@NotNull Collection<? extends TextAnnotationGutterProvider> annotations) {
    if (!myCanCloseAnnotations) return;

    Set<TextAnnotationGutterProvider> toClose = new ReferenceOpenHashSet<>(annotations);
    myTextAnnotationGutterProviders.removeIf(info -> {
      TextAnnotationGutterProvider provider = info.provider();
      if (toClose.contains(provider)) {
        provider.gutterClosed();
        myProviderToListener.remove(provider);
        fireTextAnnotationGutterProviderRemoved(provider);
        return true;
      }
      return false;
    });

    updateSize();
  }
@Override
  public void closeTextAnnotations(@NotNull Collection<? extends TextAnnotationGutterProvider> annotations)