int (@NotNull Graphics g, @NotNull SoftWrapDrawingType drawingType, int x, int y, int lineHeight) { g.setColor(getEditor().getColorsScheme().getDefaultForeground()); int xStart = x + charWidthInPixels / 4; int xEnd = x + charWidthInPixels * 3 / 4; int yStart = y + lineHeight / 4; int yEnd = y + lineHeight * 3 / 4; switch (drawingType) { case BEFORE_SOFT_WRAP_LINE_FEED -> { g.drawLine(xEnd, yStart, xEnd, yEnd); g.drawLine(xStart, yEnd, xEnd, yEnd); } case AFTER_SOFT_WRAP -> { g.drawLine(xStart, yStart, xStart, yEnd); g.drawLine(xStart, yEnd, xEnd, yEnd); } } return charWidthInPixels; }