boolean (GrExpression exp) { GrExpression ancestor = exp; while (ancestor.getParent() instanceof GrParenthesizedExpression) { ancestor = (GrExpression) ancestor.getParent(); } if (ancestor.getParent() instanceof GrUnaryExpression prefixAncestor) { final IElementType sign = prefixAncestor.getOperationTokenType(); if (GroovyTokenTypes.mLNOT.equals(sign)) { return true; } } return false; }