void (@NotNull String errorMessage) { myAllDeployments.replaceRemotesWith(Collections.emptyList()); myStatusText = CloudBundle.message("ServerConnectionImpl.error.cannot.obtain.deployments", errorMessage); myEventDispatcher.queueConnectionStatusChanged(ServerConnectionImpl.this); myEventDispatcher.queueDeploymentsChanged(ServerConnectionImpl.this); onFinished.run(); }