List<AnAction> () { List<AnAction> actions = List.of( new MyPrevDifferenceAction(), new MyNextDifferenceAction(), new OpenInEditorAction(), Separator.getInstance(), new MyPrevChangeAction(), new MyNextChangeAction()); AnAction goToChangeAction = createGoToChangeAction(); if (goToChangeAction != null) { actions = ContainerUtil.append(actions, goToChangeAction); } return actions; }