PsiExpressionList (@Nullable PsiElement psi) { PsiElement parent = psi == null ? null :psi.getParent(); if (parent instanceof PsiCallExpression) { return ((PsiCallExpression)parent).getArgumentList(); } else if (parent instanceof PsiAnonymousClass) { return ((PsiAnonymousClass)parent).getArgumentList(); } return null; }