Extracting out code into a visitor that returns all ibor indices that are referred to by an instrument.
Extracting out code into a visitor that returns all overnight indices that are referred to by an instrument.