s/inheritReferenceCode/referenceCode