GrCodeReferenceElement () { GrTypeDefinitionStub stub = getStub(); if (stub != null) { GrCodeReferenceElement reference = stub.getBaseClassReference(); assert reference != null; return reference; } return findNotNullChildByClass(GrCodeReferenceElement.class); //not null because of definition =) }