void (@NotNull GrReferenceExpression ref) { if (ref.getQualifierExpression() == null) { //only unqualified references could change their targets final GroovyResolveResult resolveResult = ref.advancedResolve(); ref.putCopyableUserData(REF_RESOLVE_RESULT_KEY, resolveResult); } super.visitReferenceExpression(ref); }