docs: public static <T> List<T> loadDeclaredClasses(
              AddOnClassLoader addOnClassLoader,
              List<String> classnames,
              Class<T> clazz,
              String type) {
          validateNotNull(addOnClassLoader, "addOnClassLoader");
          validateNotNull(classnames, "classnames");
          validateNotNull(clazz, "clazz");
          validateNotNull(type, "type");
  
          if (classnames.isEmpty()) {
              return Collections.emptyList();
          }
  
          ArrayList<T> instances = new ArrayList<>(classnames.size());
          for (String classname : classnames) {
              T instance = loadAndInstantiateClassImpl(addOnClassLoader, classname, clazz, type);
              if (instance != null) {
                  instances.add(instance);
              }
          }
          instances.trimToSize();
          return Collections.unmodifiableList(instances);
      }