private static @NotNull Path getIndexDirectory(@NotNull ID<?, ?> indexName, boolean forVersion) throws IOException {
    return getIndexDirectory(indexName, forVersion, "");
  }
private static @NotNull Path getIndexDirectory(@NotNull ID<?, ?> indexName, boolean forVersion)