List<AnAction> () { List<AnAction> res = new ArrayList<>(); ActionManager actionManager = ActionManager.getInstance(); for (String actionId : ACTIONS_TO_SKIP) { AnAction action = actionManager.getAction(actionId); if (action != null) { res.add(action); } } return res; }