def METHOD_NAME(
    self,
    config_key,
    conf_value,
    class_name,
    ignore_errors,
    validate_fn,
):
    modules = []
    if conf_value:
        for module_name in conf_value:
            try:
                if class_name is not None:
                    if class_name == "*":
                        module = self.import_class(
                            module_name, validate_fn=validate_fn
                        )
                    else:
                        module = self.import_class(
                            f"{module_name}.{class_name}",
                            validate_fn=validate_fn,
                        )
                else:
                    module = self.import_class(
                        module_name,
                        get_module=True,
                        validate_fn=validate_fn,
                    )
                modules.append(module)
            except ImportError as error:
                if ignore_errors:
                    logger.warning(
                        "Module %s could not be imported: %s",
                        module_name,
                        error,
                    )
                else:
                    raise
    setattr(self, config_key.lower(), tuple(modules))