public @Nullable DeploymentImpl updateRemoteState(@NotNull String deploymentName,
                                                      @Nullable DeploymentRuntime deploymentRuntime,
                                                      @NotNull DeploymentStatus deploymentStatus,
                                                      @Nullable @Nls String deploymentStatusText) {

      synchronized (myLock) {
        DeploymentImpl<?> result = myRemoteDeployments.get(deploymentName);
        if (result != null && !result.getStatus().isTransition()) {
          result.changeState(result.getStatus(), deploymentStatus, deploymentStatusText, deploymentRuntime);
        }
        return result;
      }
    }
public @Nullable DeploymentImpl updateRemoteState(@NotNull String deploymentName,
                                                      @Nullable DeploymentRuntime deploymentRuntime,
                                                      @NotNull DeploymentStatus deploymentStatus,
                                                      @Nullable @Nls String deploymentStatusText)