I would like to stop my custom tool window from appearing on startup. I thought I'd make use of overriding ToolWindowFactory.isDoNotActivateOnStart() with returning true, but it fails to do what's needed even though the debugger drops into this method correctly. I tried to debug further and saw to it that 'visible' property of WindowInfoImpl.kt becomes false. However, I'm not very good at Kotlin and can't be sure of the functionality of the class. So please give me some tips about the method or some other solution.
I had another idea of creating project level component and calling explicitly ToolWindow.hide() in its projectClosed() method, but it's a dead-end for sure.