LocalQuickFix[] (GrSpreadArgument spreadArgument) { GrCallExpression parent = PsiTreeUtil.getParentOfType(spreadArgument, GrCallExpression.class); if (parent == null) return LocalQuickFix.EMPTY_ARRAY; PsiMethod resolveMethod = parent.resolveMethod(); if (resolveMethod == null) return LocalQuickFix.EMPTY_ARRAY; return new LocalQuickFix[]{GroovyQuickFixFactory.getInstance().createSpreadArgumentFix(resolveMethod.getParameters().length)}; }