- Disable “duplicated code” detection
- Settings → Editor → Inspections → General → Duplicated Code
- (Or better) in the source code, use @SuppressWarnings(“Duplicates”)
- Ref.: stackoverflow
- Show source file structure
- From menu: “View” -> “Tool Windows” -> “Structure”
- Quick key: CMD + 7
- Reformat all codes under a folder: in Project view, select the folder, then Code -> Reformat Code