async generateSeparateFiles(asyncapiDocument, array, template, fileName, baseDir) {
    const promises = [];

    Object.keys(array).forEach((name) => {
      const component = array[name];
      promises.push(this.generateSeparateFile(asyncapiDocument, name, component, template, fileName, baseDir));
    });

    return Promise.all(promises);
  }
Generates all the files for each in array

@private
@param  {AsyncAPIDocument} asyncapiDocument AsyncAPI document to use as the source.
@param  {Array} array The components/channels to generate the separeted files for.
@param  {String} template The template filename to replace.
@param  {String} fileName Name of the file to generate for each security schema.
@param  {String} baseDir Base directory of the given file name.
@returns {Promise}