boolean () { final String windowId = myProperties.getExecutor().getToolWindowId(); final ToolWindow toolWindow = ToolWindowManager.getInstance(myProperties.getProject()).getToolWindow(windowId); boolean splitVertically = false; if (toolWindow != null) { final ToolWindowAnchor anchor = toolWindow.getAnchor(); splitVertically = anchor == ToolWindowAnchor.LEFT || anchor == ToolWindowAnchor.RIGHT; } return splitVertically; }