TextServicesManager#getEnabledSpellCheckerInfos() was introduced in commit4c7423735eas #getEnabledSpellCheckersList(). Then, the following commit added SuppressLint("NullableCollections"): commitd7f33cd648As this API has been introduced recently in Android S timeframe, I think it's better to fix the API behavior before it's finalized. Bug: 180625329 Test: m checkapi Change-Id: I33d3c86a0c19c0082299e383e50d3860b072e79d