List<OrderRoot> (List<? extends OrderRoot> roots) { final List<OrderRoot> rootsToAttach = filterAlreadyAdded(roots); if (!rootsToAttach.isEmpty()) { ApplicationManager.getApplication().runWriteAction(() -> getLibraryEditor().addRoots(rootsToAttach)); updatePropertiesLabel(); onRootsChanged(); myTreeModel.invalidateAsync(); } return rootsToAttach; }