public void valueChanged(ListSelectionEvent listSelectionEvent) {
try {
Object[] selectedValues = connectionsList.getSelectedValues();
if (selectedValues.length == 1) {
ConnectionSettings connectionSettings = (ConnectionSettings) selectedValues[0];
switchSettingsPanel(connectionSettings);
} else {
switchSettingsPanel(null);
}
} catch (IndexOutOfBoundsException e) {