void (ClasspathPanel classpathPanel, StructureConfigurableContext context, LibraryCreatedCallback callback, final JComponent component, final @Nullable LibraryType<?> libraryType) { final NewLibraryChooser chooser = new NewLibraryChooser(classpathPanel.getProject(), classpathPanel.getRootModel(), libraryType, context, component); final Library library = chooser.createLibrary(); if (library != null) { callback.libraryCreated(library); } }