We want to get rid of KPluginInfo. Therefore we need an alternative to KPluginInfo::kcmServices. It is used for finding a plugin's config module. KPluginMetaData does not have an equivalent.
Internally it uses KServiceTypeTrader to look for plugins of type KCModule that have the target plugin as X-KDE-ParentComponents. This approach seems weird to me. It seems more natural to have the plugin define its config instead of the other way around
A solution that is used in KWin (https://invent.kde.org/plasma/kwin/-/merge_requests/306) is adding a new key X-KDE-ConfigModule to the plugin metadata that holds the id of the config module