void (@NotNull JList<? extends Item> list, Item value, int index, boolean selected, boolean hasFocus) { if (value == null && !myHasSavedTargetsSupplier.get()) { /* `value` is expected to be `null` here */ append(ExecutionBundle.message("local.machine")); setIcon(AllIcons.Nodes.HomeFolder); } else if (value == null) { // this is the project default target append(ExecutionBundle.message("targets.details.project.default")).append(" "); if (myProjectDefaultTargetItem == null) { append(ExecutionBundle.message("local.machine"), SimpleTextAttributes.GRAYED_ATTRIBUTES); setIcon(AllIcons.Nodes.HomeFolder); } else { append(myProjectDefaultTargetItem.getDisplayName(), SimpleTextAttributes.GRAYED_ATTRIBUTES); setIcon(myProjectDefaultTargetItem.icon); } } else { append(value.getDisplayName()); setIcon(value.getIcon()); } }