void (@NotNull PsiElement psiElement) { if (psiElement != context) { 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; } } stop = !processor.process(psiElement); if (stop) { return; } super.visitElement(psiElement); }