@Override
  public void paint(@NotNull CustomFoldRegion region,
                    @NotNull Graphics2D g,
                    @NotNull Rectangle2D targetRegion,
                    @NotNull TextAttributes textAttributes) {
    myDelegate.paint(region, g, targetRegion, textAttributes);
    if (myDrawBorder) {
      TextAttributes attributes = region.getEditor().getColorsScheme().getAttributes(BLINKING_HIGHLIGHTS_ATTRIBUTES);
      if (attributes != null && attributes.getEffectColor() != null) {
        g.setColor(attributes.getEffectColor());
        Rectangle r = targetRegion.getBounds();
        g.drawRect(r.x, r.y, r.width, r.height);
      }
    }
  }
@Override
  public void paint(@NotNull CustomFoldRegion region,
                    @NotNull Graphics2D g,
                    @NotNull Rectangle2D targetRegion,
                    @NotNull TextAttributes textAttributes)