void (@NotNull JList list, JdkComboBoxItem value, int index, boolean selected, boolean hasFocus) { if (value == null) return; CompositeAppearance appearance = new CompositeAppearance(); appearance.setIcon(AllIcons.Nodes.PpJdk); SimpleTextAttributes attributes = getTextAttributes(value.valid, selected); CompositeAppearance.DequeEnd ending = appearance.getEnding(); ending.addText(value.label, attributes); if (value.comment != null && !value.comment.equals(value.jdkName)) { final SimpleTextAttributes textAttributes; if (!value.valid) { textAttributes = SimpleTextAttributes.ERROR_ATTRIBUTES; } else { textAttributes = SystemInfo.isMac && selected ? new SimpleTextAttributes(SimpleTextAttributes.STYLE_PLAIN, JBColor.WHITE) : SimpleTextAttributes.GRAY_ATTRIBUTES; } ending.addComment(value.comment, textAttributes); } final CompositeAppearance compositeAppearance = ending.getAppearance(); compositeAppearance.customize(this); }