boolean (PsiElement element) { PsiElement parent = element.getParent(); if (!(parent instanceof GrUnaryExpression)) return false; IElementType type = ((GrUnaryExpression)parent).getOperationTokenType(); return type == GroovyTokenTypes.mINC || type == GroovyTokenTypes.mDEC; }