DefaultActionGroup () { DefaultActionGroup result = new DefaultActionGroup(); result.addAll(addExpandCollapseActions()); List<AnAction> navigationActions = addNavigationActions(); if (!navigationActions.isEmpty()) { result.addSeparator(); result.addAll(navigationActions); } return result; }