GOODWILL AND PURCHASED INTANGIBLE ASSETS (Tables)
   | 
9 Months Ended | 
Mar. 31, 2024  | 
| Goodwill and Intangible Assets Disclosure [Abstract] | 
 
 | 
| Schedule of Goodwill Balances | 
The following table presents changes in goodwill carrying value by reporting unit during the nine months ended March 31, 2024:
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
| (In thousands) | 
Wafer Inspection and Patterning | 
 | 
Global Service and Support (“GSS”)
  | 
 | 
Specialty Semiconductor Process | 
 | 
PCB  and Display  | 
 | 
PCB | 
 | 
Display | 
 | 
Component Inspection | 
 | 
Total | 
 
| Balances as of June 30, 2023 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
| Goodwill | 
$ | 
1,004,700  | 
 | 
 | 
$ | 
25,908  | 
 | 
 | 
$ | 
826,037  | 
 | 
 | 
$ | 
942,819  | 
 | 
 | 
$ | 
—  | 
 | 
 | 
$ | 
—  | 
 | 
 | 
$ | 
13,575  | 
 | 
 | 
$ | 
2,813,039  | 
 | 
 
| Accumulated impairment losses | 
(277,570) | 
 | 
 | 
—  | 
 | 
 | 
(144,179) | 
 | 
 | 
(112,470) | 
 | 
 | 
—  | 
 | 
 | 
—  | 
 | 
 | 
—  | 
 | 
 | 
(534,219) | 
 | 
 
 | 
$ | 
727,130  | 
 | 
 | 
$ | 
25,908  | 
 | 
 | 
$ | 
681,858  | 
 | 
 | 
$ | 
830,349  | 
 | 
 | 
$ | 
—  | 
 | 
 | 
$ | 
—  | 
 | 
 | 
$ | 
13,575  | 
 | 
 | 
$ | 
2,278,820  | 
 | 
 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
| Activity for the nine months ended March 31, 2024 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
| Goodwill impairment | 
—  | 
 | 
 | 
—  | 
 | 
 | 
—  | 
 | 
 | 
(192,600) | 
 | 
 | 
—  | 
 | 
 | 
(70,474) | 
 | 
 | 
—  | 
 | 
 | 
(263,074) | 
 | 
 
| Reallocation due to change in reporting units | 
—  | 
 | 
 | 
—  | 
 | 
 | 
—  | 
 | 
 | 
(637,749) | 
 | 
 | 
567,275  | 
 | 
 | 
70,474  | 
 | 
 | 
—  | 
 | 
 | 
—  | 
 | 
 
| Foreign currency adjustments | 
(19) | 
 | 
 | 
—  | 
 | 
 | 
—  | 
 | 
 | 
—  | 
 | 
 | 
—  | 
 | 
 | 
—  | 
 | 
 | 
—  | 
 | 
 | 
(19) | 
 | 
 
| Balances as of March 31, 2024 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
| Goodwill | 
1,004,681  | 
 | 
 | 
25,908  | 
 | 
 | 
826,037  | 
 | 
 | 
—  | 
 | 
 | 
567,275  | 
 | 
 | 
70,474  | 
 | 
 | 
13,575  | 
 | 
 | 
$ | 
2,507,950  | 
 | 
 
| Accumulated impairment losses | 
(277,570) | 
 | 
 | 
—  | 
 | 
 | 
(144,179) | 
 | 
 | 
—  | 
 | 
 | 
—  | 
 | 
 | 
(70,474) | 
 | 
 | 
—  | 
 | 
 | 
(492,223) | 
 | 
 
 | 
$ | 
727,111  | 
 | 
 | 
$ | 
25,908  | 
 | 
 | 
$ | 
681,858  | 
 | 
 | 
$ | 
—  | 
 | 
 | 
$ | 
567,275  | 
 | 
 | 
$ | 
—  | 
 | 
 | 
$ | 
13,575  | 
 | 
 | 
$ | 
2,015,727  | 
 | 
 
  
 | 
| Schedule of Components of Purchased Intangible Assets | 
 The components of purchased intangible assets as of the dates indicated below were as follows: 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
| (In thousands) | 
  | 
 | 
As of March 31, 2024 | 
 | 
As of June 30, 2023 | 
 
| Category | 
 Range of 
Useful  
Lives 
(in years) 
 | 
 | 
Gross Carrying Amount | 
 | 
Accumulated Amortization and Impairment | 
 | 
Net Amount | 
 | 
Gross Carrying Amount | 
 | 
Accumulated Amortization and Impairment | 
 | 
Net Amount | 
 
| Existing technology | 
4-8  | 
 | 
$ | 
1,552,074  | 
 | 
 | 
$ | 
999,639  | 
 | 
 | 
$ | 
552,435  | 
 | 
 | 
$ | 
1,536,826  | 
 | 
 | 
$ | 
841,815  | 
 | 
 | 
$ | 
695,011  | 
 | 
 
| Customer relationships | 
4-9  | 
 | 
358,567  | 
 | 
 | 
238,925  | 
 | 
 | 
119,642  | 
 | 
 | 
358,567  | 
 | 
 | 
205,037  | 
 | 
 | 
153,530  | 
 | 
 
| Trade name / Trademark | 
4-7  | 
 | 
119,083  | 
 | 
 | 
93,447  | 
 | 
 | 
25,636  | 
 | 
 | 
116,583  | 
 | 
 | 
78,749  | 
 | 
 | 
37,834  | 
 | 
 
| Order backlog and other | 
<1-7  | 
 | 
83,336  | 
 | 
 | 
82,689  | 
 | 
 | 
647  | 
 | 
 | 
85,836  | 
 | 
 | 
82,264  | 
 | 
 | 
3,572  | 
 | 
 
Intangible assets subject to amortization  | 
 | 
 | 
2,113,060  | 
 | 
 | 
1,414,700  | 
 | 
 | 
698,360  | 
 | 
 | 
2,097,812  | 
 | 
 | 
1,207,865  | 
 | 
 | 
889,947  | 
 | 
 
| In-process research and development | 
 | 
 | 
46,074  | 
 | 
 | 
16,833  | 
 | 
 | 
29,241  | 
 | 
 | 
61,322  | 
 | 
 | 
15,966  | 
 | 
 | 
45,356  | 
 | 
 
| Total | 
 | 
 | 
$ | 
2,159,134  | 
 | 
 | 
$ | 
1,431,533  | 
 | 
 | 
$ | 
727,601  | 
 | 
 | 
$ | 
2,159,134  | 
 | 
 | 
$ | 
1,223,831  | 
 | 
 | 
$ | 
935,303  | 
 | 
 
  
 | 
| Schedule of Amortization Expense for Purchased Intangible Assets | 
 Amortization expense for purchased intangible assets for the periods indicated below was as follows:  
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
 | 
Three Months Ended March 31, | 
 | 
Nine Months Ended March 31, | 
 
| (In thousands) | 
2024 | 
 | 
2023 | 
 | 
2024 | 
 | 
2023 | 
 
| Amortization expense - Costs of revenues | 
$ | 
44,849  | 
 | 
 | 
$ | 
45,446  | 
 | 
 | 
$ | 
137,024  | 
 | 
 | 
$ | 
135,958  | 
 | 
 
| Amortization expense - SG&A | 
12,916  | 
 | 
 | 
19,656  | 
 | 
 | 
43,411  | 
 | 
 | 
59,912  | 
 | 
 
| Amortization expense - Research and development | 
—  | 
 | 
 | 
31  | 
 | 
 | 
—  | 
 | 
 | 
93  | 
 | 
 
| Total  | 
$ | 
57,765  | 
 | 
 | 
$ | 
65,133  | 
 | 
 | 
$ | 
180,435  | 
 | 
 | 
$ | 
195,963  | 
 | 
 
  
 | 
| Schedule of Remaining Estimated Amortization Expense | 
 Based on the purchased intangible assets gross carrying amount recorded as of March 31, 2024, the remaining estimated annual amortization expense is expected to be as follows: 
 | 
 | 
 | 
 | 
 | 
 | 
 
| Fiscal year ending June 30: | 
Amortization (In thousands) | 
 
| 2024 (remaining three months) | 
$ | 
58,837  | 
 | 
 
| 2025 | 
218,639  | 
 | 
 
| 2026 | 
197,846  | 
 | 
 
| 2027 | 
125,517  | 
 | 
 
| 2028 | 
48,849  | 
 | 
 
| 2029 and thereafter | 
48,672  | 
 | 
 
| Total | 
$ | 
698,360  | 
 | 
 
  
 |