When I use Dictionary.TryGetValue() to check, whether there is particular item in dictionary and handle false result with assigning new value to out variable - AssignNullToNotNullAttribute inspection (like the other inspections of this kind) treats result variable sa NotNull, and it is correct behaviour.
Here is a sample:
As we see, "value" usage fires inspection in TestMethod2 and does not in TestMethod1 - this means that ReSharper "knows" convention of TryGetValue method. But when I use such a pattern in my one code (creating TryGetSomething methods in my one classes) it results with false positive higlightings in my code. Is there a way to mark my own TryGetSomething methods by some kind of attribute or extend ReSharper knowledge with pluging to fix such false positive higlightings?