void (ActionEvent e) { AddNewLibraryDependencyAction.chooseTypeAndCreate(myClasspathPanel, myContext, myCreateLibraryButton, new AddNewLibraryDependencyAction.LibraryCreatedCallback() { @Override public void libraryCreated(@NotNull Library library) { if (library.getTable() == null) { myCreatedModuleLibraries.add(library); } queueUpdateAndSelect(library); } }); }