void (@NotNull PsiMethodReferenceExpression expression) { PsiMethod method = tryCast(expression.resolve(), PsiMethod.class); if (method == null) return; assert myBaseMethod != null; if (method.getContainingClass() == myBaseMethod.getContainingClass()) { myInfo.registerMethodCallDependency(myBaseMethod, method); } }