You can disable the warnings for unused methods in IntelliJ IDEA by adjusting the inspection settings. Here’s how you can do it:

File > Settings (or IntelliJ IDEA > Preferences on macOS)
Navigate to Inspections: In the settings window, go to Editor > Inspections.
Find Unused Declarations: Expand the Java section and find Unused Declaration.
Disable the Inspection: Uncheck the box next to Unused Declaration.
This will stop IntelliJ from warning you about unused methods.