Component (JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { Component result = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus); MavenDomProfile mavenDomProfile = (MavenDomProfile)value; XmlElement xmlElement = mavenDomProfile.getXmlElement(); if (xmlElement != null) { String url = getPresentableUrl(xmlElement); setText(url); } return result; }