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