DesignerToolWindow (@NotNull GuiEditor designer) { DesignerToolWindowManager manager = getInstance(designer.getProject()); if (manager.isEditorMode()) { return (DesignerToolWindow)manager.getContent(designer); } if (manager.myToolWindowPanel == null) { manager.initToolWindow(); } return manager.myToolWindowPanel; }