Basically add a code action to transform something like:
foreach(var (RefRO<ComponentA> a, RefRW<ComponentB> b, Entity entity) in SystemAPI.Query<RefRO<ComponentA>, RefRW<ComponentB>>().WithEntityAccess() {
...
}
to
internal partial struct JOB_NAME: IJobEntity {
private void Execute(in ComponentA a, ref ComponentB b, Entity entity) {
...
}
}