boolean (TextAttributes innerAttributes, float x, int y, float width, @NotNull FoldRegion foldRegion) { if (innerAttributes.getBackgroundColor() != null && !isSelected(foldRegion)) { paintBackground(innerAttributes, x, y, width); Color borderColor = myEditor.getColorsScheme().getColor(EditorColors.FOLDED_TEXT_BORDER_COLOR); if (borderColor != null) { Shape border = getBorderShape(x, y, width, myLineHeight, 2, false); if (border != null) { myGraphics.setColor(borderColor); myGraphics.fill(border); } } return true; } else { return false; } }