See org.hibernate.search.mapper.orm.mapping.impl.AbstractHibernateOrmTypeContext#getEntityTypeDescriptor.