I have following code that produces following lint error.

fun newInstance(message: String?): DialogFragment {
return DialogFragment().apply {
arguments = Bundle().apply {
putString("arg", message)
}
}
}
The message points out that this reference inside apply() function points to BaseBundle class that is available since API 21 which will crash on lower API. Bundle#putString(key, value) is definitely available on lower versions, but there is an error in Android Studio 3.0-alpha8.
The issue quite strange as I can see decompiled code as this:

Which do reference Bundle type not a BaseBundle.
Why do we have Lint error in first place?