The code for FullTextIndex.setLanguage(@NonNull String language) specifies a @NonNull parameter. But the doc comment mentions:
A null or empty (“”) value will disable the language features.
implying it should accept a @Nullable parameter.
The similar function in FullTextIndexConfiguration with similar doc comment accepts a @Nullable parameter in comparison.