void (@NotNull PsiMethodCallExpression expression) { if (myCause != null) { return; } super.visitMethodCallExpression(expression); final PsiReferenceExpression methodExpression = expression.getMethodExpression(); final PsiMethod method = expression.resolveMethod(); if (method == null) { return; } final PsiClass containingClass = method.getContainingClass(); if (myMethods.contains(method) || myInnerClasses.contains(containingClass)) { return; } if (method.hasModifierProperty(PsiModifier.STATIC)) { return; } if (!containingClass.equals(mySourceClass)) { return; } final PsiExpression qualifier = methodExpression.getQualifierExpression(); if (qualifier == null || (myCheckThisExpression && (qualifier instanceof PsiQualifiedExpression))) { myCause = method; } }