JComboBox<GithubTagInfo> () { JComboBox<GithubTagInfo> box = super.createValuesComboBox(); box.setRenderer(SimpleListCellRenderer.create((label, tag, index) -> { final String text; if (tag == null) { text = isBackgroundJobRunning() ? CommonBundle.getLoadingTreeNodeText() : LangBundle.message("label.unavailable"); } else { text = tag.getName(); } label.setText(text); })); return box; }