void () { String selectedBefore = myServerNameReminder; RemoteServersManager manager = RemoteServersManager.getInstance(); RemoteServer<?> newServer = manager.createServer(myServerType); manager.addServer(newServer); if (!editServer(RemoteServerListConfigurable.createConfigurable(myServerType, newServer.getName()))) { manager.removeServer(newServer); selectServerInCombo(selectedBefore); } }