public void patchDeploymentTask(@NotNull DeploymentTask<?> deploymentTask) {
    RunProfile runProfile = deploymentTask.getExecutionEnvironment().getRunProfile();
    if (runProfile instanceof DeployToServerRunConfiguration<?, ?> runConfiguration) {
      processApplicableExtensions(runConfiguration, next -> {
        next.patchDeploymentTask(runConfiguration, deploymentTask);
        return null;
      });
    }
  }
public void patchDeploymentTask(@NotNull DeploymentTask<?> deploymentTask)