code: function depsForDeps(relations, levels) {
    // Get directories from BemDeps
    const dirs = bemDirs(relations);
  
    // Get all (with sub-) directories
    let allDirs = {};
    dirs.forEach((targetDir) => {
      allDirs[targetDir] = true;
  
      let subDir = path.dirname(targetDir);
      do {
        allDirs[subDir] = true;
        subDir = path.dirname(subDir);
      } while (path.dirname(subDir) !== subDir);
    });
    allDirs = Object.keys(allDirs);
  
    // Join dirs with levels
    const paths = levels.slice();
    levels.forEach((level) => {
      allDirs.forEach((dir) => {
        paths.push(path.join(level, dir));
      });
    });
  
    return Promise.resolve(paths);
    // Search for existing directories
    // return dirsExist(paths).then((result) => {
    //   return Object.keys(result).filter((dir) => {
    //     return true === result[dir];
    //   });
    // });
  }
docs: const dirsExist = require('@intervolga/bem-utils').dirsExist; 
  Transforms BemDeps to list of dependent directories and files
  
  @param {Array} relations
  @param {Array} levels
  @return {Promise}