IDEA-110978 Refactors this as null when converting for-each loop to indexed for loop