I have the following code on which I perform a custom type of null checking of my parameters. I do it that way to avoid writing 3 separate if statements (adds cyclomatic complexity) and in my opinion it just looks cleaner. However, VS2022, on NET6 refuses to take away the null warning on the previously validated parameters.
Here's an example: I perform the custom null validation on all params and just do one manually (logger). Only the one done manually gets to be clean with no warnings. Any ideas how to make it work with custom null validations?