detectFromPluginNames

Detects the module type from a list of plugin class names.

AalekhExtractTask receives plugin class names as plain Strings — no live Project reference — so the detection survives configuration cache serialisation. Plugin class names look like "org.jetbrains.kotlin.gradle.plugin.KotlinPluginWrapper", so the match is on known substrings rather than exact equality.