static _getLocalPluginName(plugin) {
    /* eslint-disable global-require */
    if (plugin.path) {
      const jsonPath = path.join(plugin.path, 'package.json');
      if (fs.existsSync(jsonPath)) {
        const packageName = require(jsonPath).name;
        return parsePluginName(packageName);
      }
      return require(plugin.path).name;
    }
    return null;
    /* eslint-enable global-require */
  }
get local plugin name (local plugin is defined with 'path')
@param plugin
@returns {string}
@private