private static boolean matchThisQualifierReference(PsiThisExpression patternQualifier, PsiThisExpression candidateQualifier) {
    final PsiJavaCodeReferenceElement thisPatternQualifier = patternQualifier.getQualifier();
    final PsiElement patternContextClass = thisPatternQualifier == null
                                           ? RefactoringChangeUtil.getThisClass(patternQualifier) : thisPatternQualifier.resolve();
    final PsiJavaCodeReferenceElement thisCandidateQualifier = candidateQualifier.getQualifier();
    final PsiElement candidateContextClass = thisCandidateQualifier == null
                                             ? RefactoringChangeUtil.getThisClass(candidateQualifier) : thisCandidateQualifier.resolve();
    return patternContextClass == candidateContextClass;
  }
private static boolean matchThisQualifierReference(PsiThisExpression patternQualifier, PsiThisExpression candidateQualifier)