ConversionResult (@NotNull PsiType targetType, @NotNull PsiType actualType, @NotNull Position position, @NotNull GroovyPsiElement context) { if (!(targetType instanceof PsiArrayType) || !(actualType instanceof GrTupleType)) return null; final PsiType lComponentType = ((PsiArrayType)targetType).getComponentType(); for (PsiType rComponentType : ((GrTupleType)actualType).getComponentTypes()) { if (!TypesUtil.isAssignableByParameter(lComponentType, rComponentType, context)) return null; } return ConversionResult.OK; }