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