Code to reproduce:
Visual BasicPublic Class TestClass
Function GetText(name As Boolean) As String
Dim text = If(name,
getName(),<<:caret:>>
getLastName())
Return text
End Function
Private Function getName() As String
Return ""
End Function
Private Function getLastName() As String
Return ""
End Function
End Class