private static ConfigChangeAction createConfigChangeAction(ClusterSpec.Id id, Container container, VespaModel model,
                                                               boolean nodesUnchanged, boolean contentUnchanged) {
        boolean ignoreOnRedeploy = switch (model.getConfig(QrConfig.class, container.getConfigId()).restartOnInternalRedeploy()) {
            case never -> true;
            case content_changes -> contentUnchanged;
            case node_changes -> nodesUnchanged;
            case always -> false;
        };
        return new VespaRestartAction(id, createMessage(container), container.getServiceInfo(), ignoreOnRedeploy);
    }
Returns a restart action for each container that has turned on {@link QrConfig#restartOnDeploy()}.

@author bjorncs
config-model/src/main/java/com/yahoo/vespa/model/application/validation/change/ContainerRestartValidator.java