GROOVY-5932 fix covariance defaultargument problem. The code did modify the modifiers if methods nodes not belonging to it. This part of the code has probably more bugs than just this, but this fix will help limit the problem