ConversionResult (@NotNull PsiType lType, @NotNull PsiType rType, @NotNull Position position, @NotNull GroovyPsiElement context) { if (isCompileStatic(context)) return null; if (lType instanceof PsiArrayType) { PsiType lComponentType = ((PsiArrayType)lType).getComponentType(); PsiType rComponentType = ClosureParameterEnhancer.findTypeForIteration(rType, context); if (rComponentType != null && TypesUtil.isAssignable(lComponentType, rComponentType, context)) { return ConversionResult.OK; } } return null; }