boolean (@NotNull PsiSuperExpression pattern, @NotNull PsiSuperExpression candidate) { final PsiJavaCodeReferenceElement qualifier = pattern.getQualifier(); final PsiElement contextClass = qualifier == null ? RefactoringChangeUtil.getThisClass(pattern) : qualifier.resolve(); final PsiJavaCodeReferenceElement candidateQualifier = candidate.getQualifier(); return contextClass == (candidateQualifier != null ? candidateQualifier.resolve() : RefactoringChangeUtil.getThisClass(candidate)); }