In eclipse I can include things like the following in the vm args or program args in a launch configuration:
-Dsome.system.property=${string.prompt:explanation:d
Maybe this is what you want. it's work on mine project.
e.g.
launchctl setenv ANDROID_HOME= /usr/myuser/android_sdk/ and restart intellij