boolean (@Nullable PsiElement parent) { if (parent instanceof GrUnaryExpression) { IElementType tokenType = ((GrUnaryExpression)parent).getOperationTokenType(); return tokenType == GroovyTokenTypes.mINC || tokenType == GroovyTokenTypes.mDEC; } return false; }