void (@NotNull GrForInClause forInClause) { final GrVariable variable = forInClause.getDeclaredVariable(); final GrExpression iterated = forInClause.getIteratedExpression(); if (variable == null || iterated == null) return; final PsiType iteratedType = ClosureParameterEnhancer.findTypeForIteration(iterated, forInClause); if (iteratedType == null) return; final PsiType targetType = variable.getType(); final ConversionResult result = TypesUtil.canAssign(targetType, iteratedType, forInClause, Position.ASSIGNMENT); LocalQuickFix[] fixes = {new GrCastFix(TypesUtil.createListType(iterated, targetType), iterated)}; processResult(result, variable, targetType, iteratedType, fixes); }