PsiMethodCallExpression (@Nullable final PsiElement methodName) { if (methodName == null || methodName.getParent() == null) return null; if (!(methodName.getParent().getParent() instanceof PsiMethodCallExpression)) return null; return (PsiMethodCallExpression)methodName.getParent().getParent(); }