public static void detachDirectoriesWithUndo(@NotNull Project project, @NotNull List<? extends VirtualFile> files) {
    AttachDirectoryUtils.addRemoveEntriesWithUndo(project, null, files, false);
  }
public static void detachDirectoriesWithUndo(@NotNull Project project, @NotNull List<? extends VirtualFile> files)