Quarterly report pursuant to Section 13 or 15(d)

Comprehensive Income - Changes in Each Component of Accumulated Other Comprehensive Loss (Detail)

v3.22.2.2
Comprehensive Income - Changes in Each Component of Accumulated Other Comprehensive Loss (Detail) - USD ($)
$ in Thousands
3 Months Ended
Jul. 31, 2022
Jul. 31, 2021
Accumulated Other Comprehensive Income Loss [Line Items]    
Beginning balance $ 1,544,346  
Ending balance 1,564,750  
Foreign Currency Translation    
Accumulated Other Comprehensive Income Loss [Line Items]    
Beginning balance (92,717) $ (33,666)
Unrealized (losses) gains arising during the period (16,257) (8,368)
Ending balance (108,974) (42,034)
Deferred Compensation and Pension Plan    
Accumulated Other Comprehensive Income Loss [Line Items]    
Beginning balance 961 (18,135) [1]
Reclassification of realized net losses to net income 51 341 [1]
Ending balance 1,012 (17,794) [1]
Unrealized Losses on Marketable Securities    
Accumulated Other Comprehensive Income Loss [Line Items]    
Beginning balance (429) (19)
Unrealized (losses) gains arising during the period (53) 3
Reclassification of realized net losses to net income   1
Ending balance (482) (15)
Accumulated Other Comprehensive Loss    
Accumulated Other Comprehensive Income Loss [Line Items]    
Beginning balance (92,185) (51,820)
Unrealized (losses) gains arising during the period (16,310) (8,365)
Reclassification of realized net losses to net income 51 342
Ending balance $ (108,444) $ (59,843)
[1] The tax effect on the reclassifications of realized net losses was $0.1 million for the three months ended July 31, 2021.