void (@NotNull SimpleColoredComponent component, @NlsContexts.DetailedDescription @Nullable String description, @NotNull Color foreground) { if (description != null) { SimpleTextAttributes smallAttributes = new SimpleTextAttributes(STYLE_SMALLER, foreground); component.append(StringUtil.shortenTextWithEllipsis(description, 40, 0), smallAttributes); component.appendTextPadding(660, SwingConstants.RIGHT); } }