PsiThisExpression (PsiManager manager, PsiClass thisClass, PsiClass refParent) { PsiThisExpression thisAccessExpr = null; if (Comparing.equal(thisClass, refParent)) { thisAccessExpr = RefactoringChangeUtil.createThisExpression(manager, null); } else { if (!(thisClass instanceof PsiAnonymousClass)) { thisAccessExpr = RefactoringChangeUtil.createThisExpression(manager, thisClass); } } return thisAccessExpr; }