void (@NotNull Inlay inlay, @NotNull Graphics g, @NotNull Rectangle targetRegion, @NotNull TextAttributes textAttributes) { resetCurrentLineNumber(); g.setColor(getInlayBackgroundColor()); g.fillRect(targetRegion.x, targetRegion.y, targetRegion.width, targetRegion.height); g.setColor(NamedColorUtil.getErrorForeground()); g.fillRect(targetRegion.x, targetRegion.y, targetRegion.x + RIGHT_BAR_THICKNESS, calcHeightInPixels(inlay)); g.setFont(getFont(inlay.getEditor())); g.setColor(NamedColorUtil.getErrorForeground()); drawStringToInlayBox((myIsTestSetUpFail ? getErrorInTestSetUpCaption() : getFailedTestCaption()) + ":", inlay, g, targetRegion); g.setColor(UIUtil.getToolTipForeground()); String[] lines = StringUtil.splitByLines(myErrorMessage); drawStringToInlayBox(myExceptionType + ": " + lines[0], inlay, g, targetRegion); if (lines.length > 1) { for (int k = 1; k < lines.length; k++) { drawStringToInlayBox(lines[k], inlay, g, targetRegion); } } }