void () { myLibraryEditor.setName(myNameAndLevelPanel.getLibraryName()); myLibraryRootsComponent.applyProperties(); if (myLibraryEditor instanceof NewLibraryEditor) { mySettings.setNewLibraryLevel(myNameAndLevelPanel.getLibraryLevel()); } super.doOKAction(); }