For IntelliJ you can set the maxFile limit at process level from the terminal and then run IntelliJ IDE from that Shell
Commands to increase the limit at process level
ulimit -Sn 524288
ulimit -Hn 10485760
Then run this command to the IDE
/Applications/Intellij\ IDEA.app/Contents/MacOS/idea