@Override
public void visitReferenceExpression(GrReferenceExpression refExpr) {
super.visitReferenceExpression(refExpr);
final PsiElement resolved = refExpr.resolve();
if (!(resolved instanceof GrVariable)) return;
<BUG>if (resolved instanceof GrField && scope.getManager().areElementsEquivalent(scope, ((GrField)resolved).getContainingClass())) {
</BUG>
return;
}
if (resolved instanceof PsiParameter &&

@Override
public void visitReferenceExpression(GrReferenceExpression refExpr) {
super.visitReferenceExpression(refExpr);
final PsiElement resolved = refExpr.resolve();
if (!(resolved instanceof GrVariable)) return;
if (resolved instanceof GrField && clazz.getManager().areElementsEquivalent(clazz, ((GrField)resolved).getContainingClass())) {
return;
}
if (resolved instanceof PsiParameter &&
