void (@NotNull PsiElement psiElement) { if (psiElement != element) { PsiElement parent = psiElement.getParent(); // do not process any anonymous class children except its getArgumentList() //if the visitor was not called from inside anonymous class if (parent instanceof PsiAnonymousClass && !(psiElement instanceof PsiExpressionList)) { return; } } super.visitElement(psiElement); }