public List<InstanceName> instanceNames() {
        return instances().stream().map(DeploymentInstanceSpec::name).toList();
    }
Returns the instance names declared in this
config-model-api/src/main/java/com/yahoo/config/application/api/DeploymentSpec.java