List<AnAction> () { List<AnAction> actions = new ArrayList<>(); actions.add(myShowDiffAction); ContainerUtil.addIfNotNull(actions, ActionManager.getInstance().getAction("Diff.ShowStandaloneDiff")); return actions; }