The solution is to set -Xmx1g (or more) in Maven VM options for importer (yes, it is a separate option!).
Go to "Settings/Preferences -> Build Tools -> Maven -> Importing", and find the option there.
这个数值就是启动时inteilj的shell命令中的xmx数值。
如果import一直出现编译 java heap overflow,就需要设置这货