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