@Override
  public void actionPerformed(@NotNull AnActionEvent e) {
    Project project = e.getProject();
    if (project == null) return;
    ProjectFileIndex index = ProjectFileIndex.getInstance(project);
    List<VirtualFile> roots = JBIterable.of(e.getData(CommonDataKeys.VIRTUAL_FILE_ARRAY))
      .filter(o -> isExclusionRoot(index, o)).toList();
    AttachDirectoryUtils.excludeEntriesWithUndo(project, roots, false);
  }
@Override
  public void actionPerformed(@NotNull AnActionEvent e)