void (@NotNull Inlay inlay, @NotNull Graphics g, @NotNull Rectangle r, @NotNull TextAttributes textAttributes) { final Editor editor = inlay.getEditor(); final TextAttributes attributes = editor.getColorsScheme().getAttributes(DefaultLanguageHighlighterColors.INLINE_PARAMETER_HINT); if (attributes == null) { return; } final FontMetrics metrics = getFontMetrics(editor); final Color backgroundColor = attributes.getBackgroundColor(); if (backgroundColor != null) { final GraphicsConfig config = GraphicsUtil.setupAAPainting(g); GraphicsUtil.paintWithAlpha(g, 0.55f); g.setColor(backgroundColor); g.fillRoundRect(r.x + 2, r.y, r.width - 4, r.height, 8, 8); config.restore(); } final Color foregroundColor = attributes.getForegroundColor(); if (foregroundColor != null) { g.setColor(foregroundColor); g.setFont(getFont()); g.drawString(myText, r.x + 6, r.y + metrics.getAscent()); } }