void (@NotNull ServerRuntimeInstance<D> instance) { LocalDeploymentImpl<?> deployment = new LocalDeploymentImpl<>(instance, ServerConnectionImpl.this, DeploymentStatus.DEPLOYING, null, null, task); String deploymentName = deployment.getName(); myAllDeployments.addLocal(deployment); DeploymentLogManagerImpl logManager = myPerProjectLogManagers.computeIfAbsent(task.getProject(), LogManagersForProject::new) .findOrCreateManager(deployment) .withMainHandlerVisible(true); LoggingHandlerImpl handler = logManager.getMainLoggingHandler(); handler.printlnSystemMessage("Deploying '" + deploymentName + "'..."); onDeploymentStarted.accept(deploymentName); instance .deploy(task, logManager, new DeploymentOperationCallbackImpl(deploymentName, (DeploymentTaskImpl<D>)task, handler, deployment)); }