ArrayList<AnAction> (boolean fromPopup) { ArrayList<AnAction> actions = new ArrayList<>(); ServerType<?> singleServerType = getSingleServerType(); if (singleServerType == null) { actions.add(new AddRemoteServerGroup()); } else { actions.add(new AddRemoteServerAction(singleServerType, IconUtil.getAddIcon())); } actions.add(new MyDeleteAction()); return actions; }