interfaces function is added to ReferenceType.