void (@NotNull Deployment deployment) { synchronized (myLock) { String deploymentName = deployment.getName(); myLocalDeployments.remove(deploymentName); myRemoteDeployments.remove(deploymentName); } }