Merge "Factor out InputMethodManager#forContext()"