GrUnaryExpression (@NotNull PsiElement element) { PsiElement parent = element.getParent(); IElementType opType = element.getNode().getElementType(); if (opType != GroovyTokenTypes.mINC && opType != GroovyTokenTypes.mDEC) return null; return ObjectUtils.tryCast(parent, GrUnaryExpression.class); }