This message was deleted.
# general
s
This message was deleted.
m
I use
System.getProperty('idea.active').equals('true')
in similar situations. Or
'idea.sync.active'
when specifially targetting the sync time instead of the running of tests, etc. But I'd also be interested in a more trustworthy solution, e.g. in hooks for IDE(A) import, so I can run code generation, etc.