Library (@NotNull @NonNls String name, @NotNull LibraryLevel level, @NotNull Collection<? extends OrderRoot> roots) { final NewLibraryEditor editor = new NewLibraryEditor(); editor.setName(name); editor.addRoots(roots); return createLibrary(editor, level); }