PsiExpressionList (PsiElement ref) { if (ref instanceof PsiCall) return ((PsiCall)ref).getArgumentList(); PsiElement parent = ref.getParent(); if (parent instanceof PsiCall) { return ((PsiCall)parent).getArgumentList(); } else if (parent instanceof PsiAnonymousClass) { return ((PsiNewExpression)parent.getParent()).getArgumentList(); } LOG.assertTrue(false); return null; }