AnAction () { DefaultActionGroup group = DefaultActionGroup.createPopupGroup(IdeBundle.messagePointer("popup.title.in.editor.mode")); group.add(createToggleAction(ToolWindowAnchor.LEFT)); group.add(createToggleAction(ToolWindowAnchor.RIGHT)); group.add(createToggleAction(null)); return group; }