I have a question and it is that the IDE AndroidStudio marks some warning when the line of code can produce a null result, in that case it suggests a assert variable != null
the question is whether it would have the same meaning as saying:
if (variable != null){
}