AnAction (boolean headerAction) { if (headerAction) { return CommonActionsManager.getInstance().createCollapseAllHeaderAction(myTreeExpander, this); } else { return CommonActionsManager.getInstance().createCollapseAllAction(myTreeExpander, this); } }