function isServerProtocolSupported(server, supportedProtocols, paramsServerName) {
  if (server && Array.isArray(supportedProtocols) && !supportedProtocols.includes(server.protocol())) {
    throw new Error(`Server "${paramsServerName}" uses the ${server.protocol()} protocol but this template only supports the following ones: ${supportedProtocols}.`);
  }
}
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[]} supportedProtocols Supported protocols specified in template configuration
@param {String} paramsServerName Name of the server specified as a param for the generator