boolean (@NotNull PsiElement expression) { final PsiElement parent = expression.getParent(); return expression instanceof PsiReferenceExpression && parent instanceof PsiMethodCallExpression && ((PsiReferenceExpression)expression).getReferenceNameElement() == ((PsiMethodCallExpression)parent).getMethodExpression().getReferenceNameElement(); }