GrCodeReferenceElement () { final GrAnonymousClassDefinition anonymous = getAnonymousClassDefinition(); if (anonymous != null) return anonymous.getBaseClassReferenceGroovy(); return findChildByClass(GrCodeReferenceElement.class); }