[#78198458] Add ref arg to function getRowIndexByItem.