in maven2-server-impl/src/org/jetbrains/idea/maven/server/embedder/Maven2ServerIndexerImpl.java [66:82]
private IndexingContext getIndex(MavenIndexId mavenIndexId) throws IOException {
IndexingContext context = myIndexer.getIndexingContexts().get(mavenIndexId.indexId);
if (context == null) {
synchronized (myIndexer) {
context = myIndexer.getIndexingContexts().get(mavenIndexId.indexId);
if (context == null) {
context = myIndexer.addIndexingContextForced(
mavenIndexId.indexId, mavenIndexId.repositoryId,
mavenIndexId.repositoryFilePath != null ? new File(mavenIndexId.repositoryFilePath) : null,
new File(mavenIndexId.indexDirPath), mavenIndexId.url, null,
Arrays.asList(new TinyArtifactInfoIndexCreator(), new JarFileContentsIndexCreator())
);
}
}
}
return context;
}