@Deprecated(forRemoval = true)
  @Nullable
  public Bundle fromDirectory(@NotNull File directory) throws IOException {
    final BundleType type = BundleType.detectBundleType(directory.toPath());
    return switch (type) {
      case TEXTMATE -> fromTextMateBundle(directory);
      case SUBLIME -> new Bundle(directory.getName(), directory.getPath(), type);
      case VSCODE -> new VSCBundle(directory.getName(), directory.getPath());
      default -> null;
    };
  }
@Deprecated(forRemoval = true)
  @Nullable
  public Bundle fromDirectory(@NotNull File directory)