code: static void init(boolean includeAddOns) {
          loadedPlugins = new ArrayList<>(CoreFunctionality.getBuiltInActiveScanRules());
          if (includeAddOns) {
              loadedPlugins.addAll(ExtensionFactory.getAddOnLoader().getActiveScanRules());
          }
          //sort by the criteria below.
          Collections.sort(loadedPlugins, riskComparator);
  
          mapLoadedPlugins = new HashMap<>();
          for (Plugin plugin : loadedPlugins) {
              checkPluginId(plugin);
              mapLoadedPlugins.put(plugin.getId(), plugin);
          }
      }
docs: Helper method to ease tests.