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