Building with IDEA get stuck at "- Upgrade@30% PreflightingApplication"

Sometimes it gets stuck, sometimes not, but i can’t find a reason to.
Any clues?