private static @NotNull Path getIndexDirectory(@NotNull ID<?, ?> indexId, boolean forVersion, String relativePath) throws IOException {
    return getIndexDirectory(indexId.getName(), relativePath, indexId instanceof StubIndexKey, forVersion);
  }
private static @NotNull Path getIndexDirectory(@NotNull ID<?, ?> indexId, boolean forVersion, String relativePath)