/Engine/Source/Editor/GameProjectGeneration/Public/GameProjectUtils.h
Get the information about any modules referenced in the .uproject file of the currently loaded project
static const [TArray](API\Runtime\Core\Containers\TArray)< [FModuleContextInfo](API\Runtime\Projects\FModuleContextInfo) > & GetCurrentProjectModules()