public void replaceRemotesWith(@NotNull Collection<? extends DeploymentImpl> newDeployments) {
      synchronized (myLock) {
        myRemoteDeployments.clear();
        myCachedAllDeployments = null;
        for (DeploymentImpl<?> deployment : newDeployments) {
          myRemoteDeployments.put(deployment.getName(), deployment);
        }
      }
    }
public void replaceRemotesWith(@NotNull Collection<? extends DeploymentImpl> newDeployments)