code: public static List<AbstractPlugin> getActiveScanRules(AddOn addOn, AddOnClassLoader addOnClassLoader) {
          validateNotNull(addOn, "addOn");
          validateNotNull(addOnClassLoader, "addOnClassLoader");
  
          synchronized (addOn) {
              if (addOn.isLoadedAscanrulesSet()) {
                  return addOn.getLoadedAscanrules();
              }
  
              List<AbstractPlugin> ascanrules = loadDeclaredClasses(
                      addOnClassLoader,
                      addOn.getAscanrules(),
                      AbstractPlugin.class,
                      "ascanrule");
              addOn.setLoadedAscanrules(ascanrules);
              addOn.setLoadedAscanrulesSet(true);
              return Collections.unmodifiableList(ascanrules);
          }
      }
docs: Gets the active scan rules of the given {@code addOn}. The active scan rules are first loaded, if they weren't already.
  
  @param addOn the add-on whose active scan rules will be returned
  @param addOnClassLoader the {@code AddOnClassLoader} of the given {@code addOn}
  @return an unmodifiable {@code List} with the active scan rules, never {@code null}
  @throws IllegalArgumentException if any of the parameters is {@code null}.