PsiMethodCallExpression (@NotNull PsiStatement context) { PsiMethod method = (PsiMethod)context.getParent().getParent(); PsiNewExpression newExpression = (PsiNewExpression)method.getParent().getParent(); return (PsiMethodCallExpression) newExpression.getParent().getParent(); }