DefaultActionGroup () { registerTreeActionShortcut("FileChooser.Delete"); registerTreeActionShortcut("FileChooser.Refresh"); var group = new DefaultActionGroup(); for (var action : ((DefaultActionGroup)ActionManager.getInstance().getAction("FileChooserToolbar")).getChildActionsOrStubs()) { group.addAction(action); } for (var action : ((DefaultActionGroup)ActionManager.getInstance().getAction("FileChooserSettings")).getChildActionsOrStubs()) { if (action instanceof ActionStub stub && "FileChooser.ShowHidden".equals(stub.getId())) { action.getTemplatePresentation().setIcon(AllIcons.Actions.ToggleVisibility); group.addAction(action); } } return group; }