boolean (PsiElement context) { final PsiElement parent = context.getParent(); if (parent instanceof GrVariable && context == ((GrVariable)parent).getNameIdentifierGroovy()) { final PsiElement decl = parent.getParent(); if (decl instanceof GrVariableDeclaration && !((GrVariableDeclaration)decl).isTuple() && ((GrVariableDeclaration)decl).getTypeElementGroovy() == null) { return true; } } return false; }