void () { synchronized (myCollectedDeployments) { myAllDeployments.replaceRemotesWith(myCollectedDeployments); } myEventDispatcher.queueDeploymentsChanged(ServerConnectionImpl.this); onFinished.run(); }