boolean (PsiElement oldExpr) { if (oldExpr instanceof GrReferenceExpression ref) { if (ref.getQualifier() == null) { PsiElement nameElement = ref.getReferenceNameElement(); if (nameElement != null) { return nameElement.getNode().getElementType() == GroovyTokenTypes.kSUPER; } } } return false; }