@Override
  public void onAdded(@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 (myWidestBlockInlayValid && inlay.getWidthInPixels() > getCachedWidestBlockInlayWidth() && !EditorUtil.isInlayFolded(inlay)) {
      myWidestBlockInlay = inlay;
    }
  }
@Override
  public void onAdded(@NotNull Inlay<?> inlay)