function getEnvVarIfSet(namesInPriorityOrder) {
  for (const name of namesInPriorityOrder) {
    if (process.env[name]) return process.env[name];
  }
}
@param {Array<string>} namesInPriorityOrder @return {string|undefined}