ArrayList<AnAction> (final boolean fromPopup) { final ArrayList<AnAction> result = super.createActions(fromPopup); if (fromPopup) { result.add(Separator.getInstance()); result.add(new FlattenModulesToggleAction(myProject, () -> true, () -> myFlattenModules, value -> { myFlattenModules = value; regroupModules(); })); result.add(new HideGroupsAction()); addCollapseExpandActions(result); } return result; }