@Override
protected void customizeCellRenderer(JList list, Object value, int index, boolean selected, boolean hasFocus) {
ConnectionHandler connectionHandler = (ConnectionHandler) value;
setIcon(connectionHandler.getIcon());
append(connectionHandler.getName(), SimpleTextAttributes.REGULAR_ATTRIBUTES);
UncommittedChangeBundle uncommittedChanges = connectionHandler.getUncommittedChanges();
int changes = uncommittedChanges == null ? 0 : uncommittedChanges.size();
append(" (" + changes + ")", SimpleTextAttributes.GRAY_ATTRIBUTES);
}