boolean (PsiElement position) { PsiElement parent = position.getParent(); PsiElement pparent = parent.getParent(); return parent instanceof GrVariable && ((GrVariable)parent).getNameIdentifierGroovy() == position && ((GrVariable)parent).getTypeElementGroovy() == null && pparent instanceof GrVariableDeclaration && ((GrVariableDeclaration)pparent).isTuple(); }