function isServerProvidedInDocument(server, paramsServerName) {
  if (typeof paramsServerName === 'string' && !server) throw new Error(`Couldn't find server with name ${paramsServerName}.`);
}
Checks if given AsyncAPI document has servers with protocol that is supported by the template
@private
@param {Object} server Server object from AsyncAPI file
@param {String} paramsServerName Name of the server specified as a param for the generator