function getFileByContent(data) {
  const version2RegExp = getVersionRegexp(GENERIC_VERSION2),
    version3RegExp = getVersionRegexp(GENERIC_VERSION3),
    file = data.find((element) => {
      return element.content.match(version2RegExp) || element.content.match(version3RegExp);
    });
  return file.content;
}
When the array of files is provided as a list of parsed objects
it returns the content from file that contains the version data
@param {array} data An array of the provided file's content parsed
@returns {object} object with hasDefinedVersion property and
The content of the file that contains the version data