Hello Maxim,
thank you for the report.
We are considering some approaches to solve this problem.
At first look, the next task (https://youtrack.jetbrains.com/issue/TW-60991) should help in this case.
If you are interested in, please, vote for the task and feel free to leave any idea you would like to be implemented within the task.