It's intended to be shorthand for:
if (text2 != null) {
text2.replace()
}
Essentially they're moving support for @Nullable and @NotNull into the language and compiler.