void (final @NotNull Crumb c, final @NotNull Graphics2D g2, final int height, final int pageOffset) { final PainterSettings s = getSettings(); final Font oldFont = g2.getFont(); final int offset = c.getOffset() - pageOffset; final int width = c.getWidth(); RectanglePainter.paint(g2, offset + 2, 2, width - 4, height - 4, ROUND_VALUE + 2, s.getBackgroundColor(c), s.getBorderColor(c)); final Color textColor = s.getForegroundColor(c); if (textColor != null) { g2.setColor(textColor); } final Font font = s.getFont(g2, c); if (font != null) { g2.setFont(font); } final FontMetrics fm = g2.getFontMetrics(); String string = THREE_DOTS_AT_LEFT.trim(c.getString(), fm, width); g2.drawString(string, offset + ROUND_VALUE + 5, height - fm.getDescent() - 5); g2.setFont(oldFont); }