Is there any way to configure the 'method ... may produce NPE' such that it treats
a specified test for null in the same manner as assert?
I've got cases along the following lines:
In the above code, if the test for null succeeds, a run time exception is thrown by
the code in the ExceptionUtil class. If I change the code with assert, the inspection
then knows that var cannot be null at the point where performSomeTask is called.
What I'd like to do is tell the inspection engine that the test and the ExceptionUtil
method does something similar and so it would not be flagged as a warning/error