String () { //noinspection unchecked final Trinity<String, Icon, String> trinity = (Trinity<String, Icon, String>)getComboBox().getSelectedItem(); if (trinity == null) { // design time return "yet_unknown"; } return trinity.third; }