Adding isThrowableCausedByOrAssignableFrom method to the utils Debug class.