I have created an inspection that overrides the buildVisitor method and then again overrides the visitNewExpression method. That works nicely and my code is being called correctly. Only problem is that its called six times! That means that my warning text is shown six times.
The test files I'm using has one line inside it with only one new operator. Whats wrong here?