class ReferringCodeGenerator {

    String generateEndingReferringBodyWhenNotChaining(ReferMetadata referMetadata) {
        Type referType = referMetadata.getRefType();
        String ref = referMetadata.getRef();
        return generateEndingAssignment(getRawType(referType).getTypeName(), ref, "return %s(%s);");
    }

}