4 5 any investigation and preparation) incurred by them in connection with any litigation, whether or not resulting in any liability, but only insofar as such losses, claims, damages, liabilities and litigation arise out of or are based upon any...