docs: static String basePluginKey(PluginInfo plugin, Map<String, PluginInfo> allPluginsPerKey) {
      String base = plugin.getKey();
      String parentKey = plugin.getBasePlugin();
      while (!Strings.isNullOrEmpty(parentKey)) {
        PluginInfo parentPlugin = allPluginsPerKey.get(parentKey);
        base = parentPlugin.getKey();
        parentKey = parentPlugin.getBasePlugin();
      }
      return base;
    }