| BUSINESS COMBINATIONS - Fiscal 2020 Acquisitions (Details) - USD ($) | 12 Months Ended | |||
|---|---|---|---|---|
| Apr. 24, 2020 | Aug. 22, 2019 | Jun. 30, 2020 | Jun. 30, 2019 | |
| Business Acquisition | ||||
| Total purchase consideration | $ 11,400,000 | |||
| Acquired goodwill | $ 2,200,000 | $ 56,180,000 | $ 1,818,951,000 | |
| Cash earn-out, maximum | $ 60,000,000.0 | |||
| Wafer Inspection and Patterning | ||||
| Business Acquisition | ||||
| Acquired goodwill | 56,180,000 | $ 0 | ||
| Privately-held company | ||||
| Business Acquisition | ||||
| Total purchase consideration | 94,000,000.0 | |||
| Measurement period adjustment | $ 200,000 | |||
| Contingent consideration, non-current | 8,900,000 | |||
| Privately-held company | Wafer Inspection and Patterning | ||||
| Business Acquisition | ||||
| Acquired goodwill | $ 54,200,000 | |||
| X | ||||||||||
| 
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. No definition available. 
 | 
| X | ||||||||||
| 
- Definition Amount of consideration transferred, consisting of acquisition-date fair value of assets transferred by the acquirer, liabilities incurred by the acquirer, and equity interest issued by the acquirer. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition For contingent consideration arrangements recognized in connection with a business combination, this element represents an estimate of the high-end of the potential range (undiscounted) of the consideration which may be paid. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition Amount of liability recognized arising from contingent consideration in a business combination, expected to be settled beyond one year or the normal operating cycle, if longer. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition This element represents the amount of any measurement period adjustment (as defined) realized during the reporting period to items of consideration transferred in connection with a business combination for which the initial accounting was incomplete. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition Amount of increase in asset representing future economic benefits arising from other assets acquired in a business combination that are not individually identified and separately recognized resulting from a business combination. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Details 
 | 
| X | ||||||||||
| 
- Details 
 |