INCOME TAXES - Components of Income Before Provision for Income Taxes (Details) - USD ($)
$ in Thousands
12 Months Ended
Jun. 30, 2020
Jun. 30, 2019
Jun. 30, 2018
Components of Income from Continuing Operations before Income Taxes [Abstract]      
Domestic $ 125,060 $ 115,096 $ 85,414
Foreign 325,136 266,393 228,728
Income before income taxes $ 450,196 $ 381,489 $ 314,142