public void visit(Tree.ClassOrInterface decl) {
if(hasClassErrors(decl))
return;
boolean annots = gen.checkCompilerAnnotations(decl);
if (Decl.withinClassOrInterface(decl)) {
<BUG>if (Decl.withinInterface(decl)

&& !Decl.isToplevel(decl)) {</BUG>
classBuilder.getCompanionBuilder((Interface)decl.getDeclarationModel().getContainer()).defs(gen.classGen().transform(decl));
} else {

public void visit(Tree.ClassOrInterface decl) {
if(hasClassErrors(decl))
return;
boolean annots = gen.checkCompilerAnnotations(decl);
if (Decl.withinClassOrInterface(decl)) {
if (Decl.withinInterface(decl)) {
classBuilder.getCompanionBuilder((Interface)decl.getDeclarationModel().getContainer()).defs(gen.classGen().transform(decl));
} else {
