@Override
      protected int getFoldedBlockInlaysHeight(int foldStartOffset, int foldEndOffset) {
        int sum = 0;
        for (Inlay<?> inlay : myEditor.getInlayModel().getBlockElementsInRange(foldStartOffset, foldEndOffset)) {
          int offset = inlay.getOffset();
          boolean relatedToPrecedingText = inlay.isRelatedToPrecedingText();
          if ((relatedToPrecedingText || offset != foldStartOffset) &&
              (!relatedToPrecedingText || offset != foldEndOffset) &&
              !InlayModelImpl.showWhenFolded(inlay)) {
            sum += inlay.getHeightInPixels();
          }
        }
        return sum;
      }
@Override
      protected int getFoldedBlockInlaysHeight(int foldStartOffset, int foldEndOffset)