Check whether to use ReferenceEl or GenericRefEl