List<TypeForNewLibrary> (ClasspathPanel classpathPanel) { List<TypeForNewLibrary> suitableTypes = new ArrayList<>(); suitableTypes.add(new TypeForNewLibrary(null, JavaUiBundle.message("create.default.library.type.action.name"))); final Module module = classpathPanel.getRootModel().getModule(); for (LibraryType libraryType : LibraryType.EP_NAME.getExtensions()) { String createActionName = libraryType.getCreateActionName(); if (createActionName != null && libraryType.isSuitableModule(module, classpathPanel.getModuleConfigurationState().getFacetsProvider())) { suitableTypes.add(new TypeForNewLibrary(libraryType, createActionName)); } } return suitableTypes; }