ide/webstorm/webstorm.js
function resolveJetbrainsExe(jetbrainsDirectory) {
  var exists = false;
  var webstormInstallPaths = io.resolveDirMatches(jetbrainsDirectory, /^WebStorm\s*[.\d]+$/);

  // Check that the Webstorm folder have a bin folder, empty folders are a known issue.
  for (var j = 0; j < webstormInstallPaths.length; j++) {
    var webstormPath = [jetbrainsDirectory, webstormInstallPaths[j], 'bin'];
    var resolvedWebstorm = resolveMaxedPath(webstormPath);
    if(resolvedWebstorm === null) break;

    exists = path.resolve(resolvedWebstorm.join(path.sep), 'Webstorm.exe');
    if(fs.existsSync(exists)) {
      return exists;
    }
  }

  return exists;
}
function resolveJetbrainsExe(jetbrainsDirectory) {
  var exists = false;
  var webstormInstallPaths = io.resolveDirMatches(jetbrainsDirectory, /^WebStorm\s*[.\d]+$/);

  // Check that the Webstorm folder have a bin folder, empty folders are a known issue.
  for (var j = 0; j < webstormInstallPaths.length; j++) {
    var webstormPath = [jetbrainsDirectory, webstormInstallPaths[j], 'bin'];
    var resolvedWebstorm = resolveMaxedPath(webstormPath);
    if(resolvedWebstorm === null) break;

    exists = path.resolve(resolvedWebstorm.join(path.sep), 'Webstorm.exe');
    if(fs.existsSync(exists)) {
      return exists;
    }
  }

  return exists;
}
Check if a Webstorm.exe exists in a given windows program files directory.
@param {string} Jetbrains install directory eg, C:/Program Files/JetBrains.
@returns {string|boolean} A true concatenated path where found, else false.