void (@NotNull CustomFoldRegion region, @NotNull Graphics2D g, @NotNull Rectangle2D targetRegion, @NotNull TextAttributes textAttributes) { g.setColor(Color.pink); Rectangle r = targetRegion.getBounds(); int startX = r.x; int endX = r.x + r.width - 1; int startY = r.y; int endY = r.y + r.height - 1; g.drawLine(startX, startY, startX, endY); g.drawLine(startX, endY, endX, endY); g.drawLine(endX, endY, endX, startY); g.drawLine(endX, startY, startX, startY); }