@Override public void enterClassBody(@NotNull JavaParser.ClassBodyContext ctx) { // Create JavaId and push to the stack final JavaId id = (JavaClassId) this.constructIdBuilder.buildJavaClassId(); this.contextStack.push(id); this.saveConstruct(id, this.getConstructContent(ctx)); // Log anon classes if(this.constructIdBuilder.isAnonymousClass()) JavaFileAnalyzer2.log.debug(this.indent(this.contextStack.size()) + "Enter anon class body " + id.toString() + " " + this.printDeclarationStack()); this.constructIdBuilder.resetCurrentDeclarationContext(); }