Collection<AnAction> (FacetEditorFacade editor, Project project) { SortedMap<String, AnAction> actions = new TreeMap<>(); List<FrameworkTypeEx> frameworkTypes = DumbService.getInstance(project).filterByDumbAwareness( FrameworkTypeEx.EP_NAME.getExtensionList() ); for (FrameworkTypeEx frameworkType : frameworkTypes) { final AnAction action = new AddFrameworkSupportInProjectStructureAction(frameworkType, frameworkType.createProvider(), editor.getProjectStructureConfigurable().getModulesConfig()); actions.put(frameworkType.getPresentableName(), action); } for (FacetType type : FacetTypeRegistry.getInstance().getFacetTypes()) { actions.put(type.getPresentableName(), new AddFacetToModuleAction(editor, project, type)); } return actions.values(); }