private boolean hasIndex() {
    File buildDir = BuildManager.getInstance().getProjectSystemDirectory(project);
    return !CompilerReferenceIndex.versionDiffers(buildDir, myReaderFactory.expectedIndexVersion());
  }
private boolean hasIndex()