Fix for CC0020

When adding Code Cracker to my project, I found a bug in CC0020 (You should using 'new class') .

This diagnostic should not be reported for extern methods (used in P/Invoke calls) and when the method has parameters with "ref", "out", "this" or "params" modifier. The code fix introduced a breaking change in these situations.