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