List<AnAction> () { List<AnAction> result = new ArrayList<>(); CommonActionsManager commonActionManager = CommonActionsManager.getInstance(); result.add(commonActionManager.createExpandAllHeaderAction(getTree())); result.add(commonActionManager.createCollapseAllHeaderAction(getTree())); return result; }