code: function(directory) {
    const imlList = fs.readdirSync(directory).filter((element) => {
      var extName = path.extname(element);
      return extName === '.iml';
    });
    return imlList.length > 0 && imlList[0] || null
  }
docs: /* sample usage:
  const generate = require('@jetbrains/gen-idea-libs')
  
  generate({
  'kotlin-extensions': require.resolve('@jetbrains/kotlin-extensions'),
  'kotlin-react': require.resolve('@jetbrains/kotlin-react'),
  'kotlin-react-dom': require.resolve('@jetbrains/kotlin-react-dom'),
  'kotlinx-html-js': require.resolve('kotlinx-html')
  }, '.')