I have a question about the S2259 rule (Null pointers should not be dereferenced).
We have some custom extension method like IsNullOrEmpty which is used to determine if a collection is empty or empty. In some code samples, SonarQube somehow detects these methods and does not produce bugs, but in some code samples it does not detect this method and produces bugs.
The first screenshot didn’t detect this method so it find a bug, but in the second screenshot it detected this method so there was no bug.
Thank you in advance.