AnAction (TreeExpander expander, JComponent component) { AnAction action = createCollapseAllAction(expander, component); action.getTemplatePresentation().setIcon(AllIcons.Actions.Collapseall); return action; }