Another quick way to compare methods (or any block of code) within IntelliJ:
- Copy one version to the clipboard.
- Highlight the other version.
- Use the “Compare with Clipboard” feature from either the context menu in the editor or from View > Compare with Clipboard.