I have tried increasing the max open files limit in mac by running the following command

`sudo launchctl limit maxfiles 524288 10485760`

When I try running `ulimit -n` it shows `524288`

But while running the same command in IntelliJ idea's terminal it shows `10240`

1. I've tried reinstalling IntelliJ idea
2. I've tried restarting IntelliJ after invalidating cache and restarting
3. I've restarted the system multiple times.

Please let me know how to fix this issue.