Merge "Inline several methods in IMMS#attachNewInputLocked()" into main