[PLAT-4577] Add cds index & option to getUnderlying() visitor