USourceControlHelpers::ApplyOperationAndReloadPackages

Applies the provided function and optionally reloads the world