void (@NotNull PsiJavaToken token) { super.visitJavaToken(token); final PsiElement parent = token.getParent(); if (parent instanceof PsiClass aClass) { // have to be that complex because anonymous class argument list should not be treated as insideInner if (token.getTokenType() == JavaTokenType.LBRACE && aClass.getLBrace() == token) { inInnerClassCount++; } if (token.getTokenType() == JavaTokenType.RBRACE && aClass.getRBrace() == token) { inInnerClassCount--; } } }