void (Graphics2D g, @NotNull ColoredFragment fragment, int fragmentIndex, float x, float y) { String text = fragment.text; if (StringUtil.isEmpty(text)) return; Font font = g.getFont(); FontRenderContext frc = getFontRenderContext(font); fragment.getAndCacheRenderer(font, frc).draw(g, fragmentIndex, x, y); }