Merge "Inline IMMS#getSequenceNumberLocked" into main