I tried to run a huge process in a ToolWindow.show method, something like that:
toolWindow.show( new MyRunner(currentProject) ); // Inside MyRunner I calculate some information and it could spend some time
and it causes IDE's UI freezing.
I don't understand why did it happen, because Idea runs my code into another thread, so, UI mustn't be freezed.
Could you please advise anything that could help me?