void (@NotNull PsiAnonymousClass aClass) { if (upper == aClass) { super.visitAnonymousClass(aClass); return; } final PsiExpressionList arguments = aClass.getArgumentList(); if (arguments != null) { for (PsiExpression expression : arguments.getExpressions()) { expression.acceptChildren(new JavaRecursiveElementVisitor() { @Override public void visitAnonymousClass(@NotNull PsiAnonymousClass aClass) { index++; map.put(aClass, "$" + index); } }); } } index++; map.put(aClass, "$" + index); }