PsiCall (@NotNull PsiExpression argument) { PsiElement expressionList = argument.getParent(); if (expressionList instanceof PsiExpressionList) { PsiElement call = expressionList.getParent(); if (call instanceof PsiCall) { PsiCall originalCall = CompletionUtil.getOriginalElement((PsiCall)call); if (originalCall != null && JavaMethodCallElement.isCompletionMode(originalCall)) { return originalCall; } } } return null; }