boolean (@NotNull Project project) { synchronized (myLock) { boolean hasChanged = false; for (Iterator<LocalDeploymentImpl<?>> it = myLocalDeployments.values().iterator(); it.hasNext(); ) { LocalDeploymentImpl<?> nextLocal = it.next(); if (nextLocal.getDeploymentTask().getProject() == project) { it.remove(); hasChanged = true; } } if (hasChanged) { myCachedAllDeployments = null; } return hasChanged; } }