void (@NotNull Project project, boolean loadPaneExtensions) { ToolWindowHeadlessManagerImpl toolWindowManager = (ToolWindowHeadlessManagerImpl)ToolWindowManager.getInstance(project); ToolWindow toolWindow = toolWindowManager.getToolWindow(ToolWindowId.PROJECT_VIEW); if (toolWindow == null) { for (ToolWindowEP bean : ToolWindowEP.EP_NAME.getExtensionList()) { if (bean.id.equals(ToolWindowId.PROJECT_VIEW)) { toolWindow = toolWindowManager.doRegisterToolWindow(bean.id); break; } } } assert toolWindow != null; LafManager.getInstance(); ((ProjectViewImpl)ProjectView.getInstance(project)).setupImpl(toolWindow, loadPaneExtensions); }