##### SUMMARY
That would have prevented #69031.

##### ISSUE TYPE
- Feature Idea

##### COMPONENT NAME
ansible-test

"""
        :type args: SanityConfig
        :type targets: SanityTargets
        :type python_version: str
        :rtype: TestResult
        """
        settings = self.load_processor(args)
        paths = [target.path for target in targets.include]
        doc_targets = collections.defaultdict(list)
        target_paths = collections.defaultdict(dict)
        remap_types = dict(
            modules='module',
        )
        for plugin_type, plugin_path in data_context().content.plugin_paths.items():
            plugin_type = remap_types.get(plugin_type, plugin_type)
            for plugin_file_path in [target.name for target in targets.include if is_subdir(target.path, plugin_path)]:
                plugin_name = os.path.splitext(os.path.basename(plugin_file_path))[0]
                if plugin_name.startswith('_'):
                    plugin_name = plugin_name[1:]
                doc_targets[plugin_type].append(data_context().content.prefix + plugin_name)
                target_paths[plugin_type][data_context().content.prefix + plugin_name] = plugin_file_path