Match (@NotNull PsiThisExpression thisExpression1, @NotNull PsiThisExpression thisExpression2) { final PsiClass containingClass1 = PsiUtil.resolveClassInClassTypeOnly(thisExpression1.getType()); final PsiClass containingClass2 = PsiUtil.resolveClassInClassTypeOnly(thisExpression2.getType()); if (containingClass1 == finalSuperMethod.getContainingClass()) { if (containingClass2 == method.getContainingClass()) { return EXACT_MATCH; } } else if (containingClass1 == containingClass2) { return EXACT_MATCH; } return EXACT_MISMATCH; }