void (@NotNull AnActionEvent e, boolean state) { if (state) { myManager.setEditorMode(myAnchor); LightToolWindowManager manager = getOppositeManager(); if (manager.getEditorMode() == myAnchor) { manager.setEditorMode(myAnchor == ToolWindowAnchor.LEFT ? ToolWindowAnchor.RIGHT : ToolWindowAnchor.LEFT); } } else { myManager.setEditorMode(null); } }