BackwardReferenceReader (Project project) { File buildDir = BuildManager.getInstance().getProjectSystemDirectory(project); if (!CompilerReferenceIndex.exists(buildDir) || CompilerReferenceIndex.versionDiffers(buildDir, expectedIndexVersion())) { return null; } try { return new BackwardReferenceReader(project, buildDir); } catch (RuntimeException e) { LOG.error("An exception while initialization of compiler reference index.", e); return null; } }