void (@NotNull JList<? extends JrePathEditor.JreComboBoxItem> list, JrePathEditor.JreComboBoxItem value, int index, boolean selected, boolean hasFocus) { if (value == null) { return; } if (BundledJreProvider.BUNDLED.equals(value.getPresentableText())) { if (index == -1) append("java "); //NON-NLS append(ExecutionBundle.message("bundled.jre.name"), SimpleTextAttributes.GRAYED_ATTRIBUTES); return; } if (value.getPathOrName() == null && value.getVersion() == null) { append(StringUtil.notNullize(value.getDescription())); return; } if (index == -1) { append("java "); //NON-NLS String shortVersion = appendShortVersion(value); if (value.getPathOrName() != null && !value.getPathOrName().equals(shortVersion)) { append(value.getPathOrName() + " ", SimpleTextAttributes.GRAYED_ATTRIBUTES); } else if (value.getDescription() != null) { append(value.getDescription() + " ", SimpleTextAttributes.GRAYED_ATTRIBUTES); } } else { if (value.getPathOrName() != null) { append(value.getPathOrName() + " "); } else { appendShortVersion(value); } if (value.getDescription() != null) { append(value.getDescription() + " ", SimpleTextAttributes.GRAYED_ATTRIBUTES); } } }