void (PsiElement element) { if (element instanceof GrReferenceExpression) { GrExpression qualifierExpression = ((GrReferenceExpression)element).getQualifierExpression(); if (qualifierExpression instanceof GrReferenceExpression && ((GrReferenceExpression)qualifierExpression).resolve() == mySourceClass) { ((GrReferenceExpression)qualifierExpression).bindToElement(myTargetSuperClass); } } }