void (@NotNull GrVariable variable) { final PsiType varType = variable.getType(); final PsiElement parent = variable.getParent(); if (variable instanceof GrParameter && ((GrParameter)variable).getDeclarationScope() instanceof GrMethod || parent instanceof GrForInClause) { return; } GrExpression initializer = variable.getInitializerGroovy(); if (initializer != null) { processAssignment(varType, initializer, variable.getNameIdentifierGroovy(), variable); } else { PsiType initializerType = variable.getInitializerType(); processAssignment(varType, initializerType, variable, variable.getNameIdentifierGroovy()); } }