Hi @Pavel_Mikula,
I did share another code sample. I scan the this code and there was no bug.
Actually i realize that, when i remove custom method IsNullOrEmpty, I saw that SonarQube still didn’t find bug, too.
In this code sample it should generate bug S2259, right?

In addition, in the rule definiton,https://rules.sonarsource.com/csharp/RSPEC-2259?search=null, there is an explanation that I was not paying attention to. In the explanation ValidatedNotNullAttribute can be used for custom null check extension method.