@Override
  public void onRemoved(@NotNull Inlay<?> inlay) {
    if (myDocument.isInBulkUpdate() || myEditor.getInlayModel().isInBatchMode()) return;

    if (inlay.getPlacement() == Inlay.Placement.INLINE || inlay.getPlacement() == Inlay.Placement.AFTER_LINE_END) {
      onLineInlayUpdate(inlay);
    }
    else if (inlay == myWidestBlockInlay) {
      invalidateCachedBlockInlayWidth();
    }
  }
@Override
  public void onRemoved(@NotNull Inlay<?> inlay)