Trying to upgrade Intellij IDEA from 2016.2 to 2016.2.5 and I am getting this error:
IDEA does not have write access to /private/var/folders/_q/7md3pcy1
sudo xattr -dr com.apple.quarantine IntelliJ\ IDEA.app/ sudo chmod -R 777 IntelliJ\ IDEA.app/
these commands work recursively and fix the trouble