INCOME TAXES - Components of Income Before Provision for Income Taxes (Details) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Jun. 30, 2019 |
Jun. 30, 2018 |
Jun. 30, 2017 |
|
| Components of Income from Continuing Operations before Income Taxes [Abstract] | |||
| Domestic | $ 115,096 | $ 85,414 | $ 81,957 |
| Foreign | 266,393 | 228,728 | 203,067 |
| Income before income taxes | $ 381,489 | $ 314,142 | $ 285,024 |